Add to backstack when navigating from permalink in room details #2

This commit is contained in:
ganfra 2019-01-03 21:31:45 +01:00 committed by ganfra
parent 14fc75a5f3
commit 281c25e66d

View File

@ -17,16 +17,16 @@ class HomePermalinkHandler(private val navigator: HomeNavigator) {
} }
val permalinkData = PermalinkParser.parse(deepLink) val permalinkData = PermalinkParser.parse(deepLink)
when (permalinkData) { when (permalinkData) {
is PermalinkData.EventLink -> { is PermalinkData.EventLink -> {
navigator.openRoomDetail(permalinkData.roomIdOrAlias, permalinkData.eventId) navigator.openRoomDetail(permalinkData.roomIdOrAlias, permalinkData.eventId, true)
} }
is PermalinkData.RoomLink -> { is PermalinkData.RoomLink -> {
navigator.openRoomDetail(permalinkData.roomIdOrAlias, null) navigator.openRoomDetail(permalinkData.roomIdOrAlias, null, true)
} }
is PermalinkData.GroupLink -> { is PermalinkData.GroupLink -> {
navigator.openGroupDetail(permalinkData.groupId) navigator.openGroupDetail(permalinkData.groupId)
} }
is PermalinkData.UserLink -> { is PermalinkData.UserLink -> {
navigator.openUserDetail(permalinkData.userId) navigator.openUserDetail(permalinkData.userId)
} }
is PermalinkData.FallbackLink -> { is PermalinkData.FallbackLink -> {