Bug Fix - The room data listeners are not removed correctly

This commit is contained in:
giomfo
2017-01-30 10:58:16 +01:00
parent 9480ae5ec7
commit ab9ca8eb0f
@@ -2178,6 +2178,8 @@
MXKRoomDataSource *roomFilesDataSource = [[MXKRoomDataSource alloc] initWithRoomId:roomId andMatrixSession:session];
roomFilesDataSource.filterMessagesWithURL = YES;
[roomFilesDataSource finalizeInitialization];
// Give the data source ownership to the room files view controller.
roomFilesViewController.hasRoomDataSourceOwnership = YES;
[roomFilesViewController displayRoom:roomFilesDataSource];
[viewControllers addObject:roomFilesViewController];