Merge pull request #1970 from vector-im/feature/highlight

Highlighted Event when opening a permalink from another room
This commit is contained in:
Benoit Marty 2020-08-20 19:04:15 +02:00 committed by GitHub
commit 29e4a64475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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 🗣:

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