mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Enhance tap on room predecessor cell used to go back to the old version of the room (Fix issue #2179)
This commit is contained in:
@@ -2005,8 +2005,23 @@
|
||||
}
|
||||
else if (tappedEvent)
|
||||
{
|
||||
// Highlight this event in displayed message
|
||||
[self selectEventWithId:tappedEvent.eventId];
|
||||
if (tappedEvent.eventType == MXEventTypeRoomCreate)
|
||||
{
|
||||
// Handle tap on RoomPredecessorBubbleCell
|
||||
MXRoomCreateContent *createContent = [MXRoomCreateContent modelFromJSON:tappedEvent.content];
|
||||
NSString *predecessorRoomId = createContent.roomPredecessorInfo.roomId;
|
||||
|
||||
if (predecessorRoomId)
|
||||
{
|
||||
// Show predecessor room
|
||||
[[AppDelegate theDelegate] showRoom:predecessorRoomId andEventId:nil withMatrixSession:self.mainSession];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Highlight this event in displayed message
|
||||
[self selectEventWithId:tappedEvent.eventId];
|
||||
}
|
||||
}
|
||||
|
||||
// Force table refresh
|
||||
|
||||
Reference in New Issue
Block a user