Skip to content

Commit 2498af5

Browse files
🐛 Add missing code
1 parent ded18b3 commit 2498af5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

MatrixSDK/Data/Store/MXMemoryStore/MXMemoryStore.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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];

MatrixSDK/MXSession.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)