mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Fixed https://github.com/vector-im/vector-ios/issues/246: universal link on an unjoined room + an event iD is not properly managed
This commit is contained in:
@@ -1623,6 +1623,7 @@
|
||||
|
||||
if (succeed)
|
||||
{
|
||||
NSString *eventId = roomPreviewData.eventId;
|
||||
roomPreviewData = nil;
|
||||
|
||||
// Enable back the text input
|
||||
@@ -1640,6 +1641,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];
|
||||
}
|
||||
}
|
||||
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user