diff --git a/CHANGES.md b/CHANGES.md index e511d277d5..700badc801 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -23,6 +23,7 @@ Bugfix 🐛: - Fix refreshing of sessions list when another session is logged out - Fix IllegalArgumentException: Receiver not registered: NetworkInfoReceiver (#1960) - Failed to build unique file (#1954) + - Highlighted Event when opening a permalink from another room (#1033) - A Kick appears has "someone has made no change" (#1959) Translations 🗣: diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewState.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewState.kt index c2bffa4362..a031803fa6 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewState.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewState.kt @@ -70,5 +70,10 @@ data class RoomDetailViewState( val isAllowedToManageWidgets: Boolean = false ) : MvRxState { - constructor(args: RoomDetailArgs) : this(roomId = args.roomId, eventId = args.eventId) + constructor(args: RoomDetailArgs) : this( + roomId = args.roomId, + eventId = args.eventId, + // Also highlight the target event, if any + highlightedEventId = args.eventId + ) }