Highlighted Event when opening a permalink from another room (Fixes #1033)

This commit is contained in:
Benoit Marty 2020-08-20 18:20:53 +02:00
parent 187edbd32a
commit cbe093fe77
2 changed files with 7 additions and 1 deletions

View file

@ -21,6 +21,7 @@ Bugfix 🐛:
- Fix crash reported by RageShake
- Fix refreshing of sessions list when another session is logged out
- Failed to build unique file (#1954)
- Highlighted Event when opening a permalink from another room (#1033)
Translations 🗣:
- Add PlayStore description resources in the Triple-T format, to let Weblate handle them

View file

@ -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
)
}