File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ - (instancetype)init
5151 roomOutgoingMessagesStores = [NSMutableDictionary dictionary ];
5252 roomThreadedReceiptsStores = [NSMutableDictionary dictionary ];
5353 users = [NSMutableDictionary dictionary ];
54- // locations = [NSMutableDictionary dictionary];
54+ locations = [NSMutableDictionary dictionary ];
5555 groups = [NSMutableDictionary dictionary ];
5656 roomUnreaded = [[NSMutableSet alloc ] init ];
5757 roomSummaryStore = [[MXMemoryRoomSummaryStore alloc ] init ];
Original file line number Diff line number Diff line change @@ -774,6 +774,9 @@ - (void)handleSyncResponse:(MXSyncResponse *)syncResponse
774774 {
775775 [self handlePresenceEvent: presenceEvent direction: MXTimelineDirectionForwards];
776776 }
777+
778+ // Handle multiroom
779+ [self handleMultiroom: syncResponse.multiroom];
777780
778781 // Sync point: wait that all rooms in the /sync response have been loaded
779782 // and their /sync response has been processed
@@ -1862,6 +1865,11 @@ - (void)handlePresenceEvent:(MXEvent *)event direction:(MXTimelineDirection)dire
18621865 [self notifyListeners: event direction: direction];
18631866}
18641867
1868+ - (void )handleMultiroom : (NSDictionary <NSString*, MXMultiroomSync*> *)multiroom
1869+ {
1870+ [self .store storeLocations: multiroom];
1871+ }
1872+
18651873- (void )handleAccountData : (NSDictionary *)accountDataUpdate
18661874{
18671875 if (accountDataUpdate && accountDataUpdate[@" events" ] && ((NSArray *)accountDataUpdate[@" events" ]).count )
You can’t perform that action at this time.
0 commit comments