mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
New async [MXRoom state:]: Fix issue using preloadRoomsData
This commit is contained in:
@@ -339,7 +339,8 @@
|
||||
// Make sure we can access synchronously to self.mxRoom and mxRoom data
|
||||
// to avoid race conditions
|
||||
MXWeakify(self);
|
||||
[_mxRoom.mxSession preloadRoomsData:@[_mxRoom.roomId, mxRoom.roomId] onComplete:^{
|
||||
[mxRoom.mxSession preloadRoomsData:_mxRoom ? @[_mxRoom.roomId, mxRoom.roomId] : @[mxRoom.roomId]
|
||||
onComplete:^{
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
// Remove previous room registration (if any).
|
||||
|
||||
Reference in New Issue
Block a user