Merge pull request #264 from vector-im/vector_246

Fixed #246: universal link on an unjoined room + an event iD is not properly managed
This commit is contained in:
manuroe
2016-04-26 19:21:35 +02:00
3 changed files with 20 additions and 0 deletions
@@ -1640,6 +1640,7 @@
if (succeed)
{
NSString *eventId = roomPreviewData.eventId;
roomPreviewData = nil;
// Enable back the text input
@@ -1657,6 +1658,15 @@
[self refreshRoomTitle];
[self refreshRoomInputToolbar];
// If an event was specified, replace the datasource by a non live datasource showing the event
if (eventId)
{
RoomDataSource *roomDataSource = [[RoomDataSource alloc] initWithRoomId:self.roomDataSource.roomId initialEventId:eventId andMatrixSession:self.mainSession];
[roomDataSource finalizeInitialization];
[self displayRoom:roomDataSource];
}
}
}];