Merge pull request #1267 from vector-im/read_marker

Read Marker: Center the bubbles table content on the bottom of the re…
This commit is contained in:
giomfo
2017-06-08 15:12:33 +02:00
committed by GitHub
+2
View File
@@ -2483,6 +2483,8 @@
roomDataSource = [[RoomDataSource alloc] initWithRoomId:self.roomDataSource.roomId initialEventId:self.roomDataSource.room.accountData.readMarkerEventId andMatrixSession:self.mainSession];
[roomDataSource finalizeInitialization];
// Center the bubbles table content on the bottom of the read marker event in order to display correctly the read marker view.
self.centerBubblesTableViewContentOnTheInitialEventBottom = YES;
[self displayRoom:roomDataSource];
// Give the data source ownership to the room view controller.