mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
Converting existing rooms to/from DMs
#715 Apply MatrixSDK changes (matrix-org/matrix-ios-sdk#158): Remove privateOneToOneRoomWithUserId: and privateOneToOneUsers (the developer must use the directRooms property instread).
This commit is contained in:
@@ -935,12 +935,14 @@
|
||||
[self addPendingActionMask];
|
||||
|
||||
NSString *matrixId = self.firstMatrixId;
|
||||
MXRoom* oneToOneRoom = [self.mainSession privateOneToOneRoomWithUserId:matrixId];
|
||||
|
||||
NSString *directRoomId = self.mainSession.directRooms[matrixId].firstObject;
|
||||
MXRoom* directRoom = [self.mainSession roomWithRoomId:directRoomId];
|
||||
|
||||
// Place the call directly if the room exists
|
||||
if (oneToOneRoom)
|
||||
if (directRoom)
|
||||
{
|
||||
[oneToOneRoom placeCallWithVideo:isVideoCall success:nil failure:nil];
|
||||
[directRoom placeCallWithVideo:isVideoCall success:nil failure:nil];
|
||||
[self removePendingActionMask];
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user