Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Bug fix - Cloned rooms in rooms list (element-hq/element-ios#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed Jan 12, 2017
1 parent bedd2ec commit 2ad1353
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MatrixKit/Models/Room/MXKRoomDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,12 @@ - (void)eventDidDecrypt:(NSNotification *)notif
}

// Notify the last message may have changed
[[NSNotificationCenter defaultCenter] postNotificationName:kMXKRoomDataSourceMetaDataChanged object:self userInfo:nil];
// Workaround to fix the case explained in this issue https://github.com/vector-im/riot-ios/issues/889#issuecomment-272168555
// To avoid launching an update of the recents while they are updating, dispatch_async the notification.
// TODO: remove this after the refactoring of recents with the coming MXRoomSummary.
dispatch_async(dispatch_get_main_queue(), ^{
[[NSNotificationCenter defaultCenter] postNotificationName:kMXKRoomDataSourceMetaDataChanged object:self userInfo:nil];
});
}
}

Expand Down

0 comments on commit 2ad1353

Please # to comment.