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

Bug fix - Cloned rooms in rooms list #222

Merged
merged 2 commits into from
Jan 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 5 additions & 0 deletions MatrixKit/Models/RoomList/MXKRecentCellData.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,9 @@ - (void)markAllAsRead
[roomDataSource markAllAsRead];
}

- (NSString*)description
{
return [NSString stringWithFormat:@"%@ %@: %@ - %@", super.description, self.roomDataSource.roomId, self.roomDisplayname, self.lastEventTextMessage];
}

@end