Skip to content

Commit

Permalink
Improved JoinRoom method;
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna committed Oct 13, 2022
1 parent ccd3956 commit afc719f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Matrix.Sdk/Matrix.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Authors>Mikhail Tatarenko</Authors>
<Product>Matrix.Sdk</Product>
<Description>This open-source library allows you to build .NET apps compatible with Matrix Protocol - http://www.matrix.org.</Description>
<Version>1.0.4</Version>
<Version>1.0.5</Version>
<Copyright>Copyright © Baking Bad 2019-2022</Copyright>
<Nullable>enable</Nullable>
<TargetFramework>netstandard2.0</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion Matrix.Sdk/MatrixClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public async Task<CreateRoomResponse> CreateTrustedPrivateRoomAsync(string[] inv
public async Task<JoinRoomResponse> JoinTrustedPrivateRoomAsync(string roomId)
{
MatrixRoom? matrixRoom = _pollingService.GetMatrixRoom(roomId);
if (matrixRoom != null)
if (matrixRoom != null && matrixRoom.Status != MatrixRoomStatus.Invited)
return new JoinRoomResponse(matrixRoom.Id);

return await _roomService.JoinRoomAsync(_accessToken!, roomId, _cts.Token);
Expand Down

0 comments on commit afc719f

Please sign in to comment.