From 281c25e66d22f3b6731ab6449d7962baf2ed7d10 Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 3 Jan 2019 21:31:45 +0100 Subject: [PATCH] Add to backstack when navigating from permalink in room details #2 --- .../features/home/HomePermalinkHandler.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/im/vector/riotredesign/features/home/HomePermalinkHandler.kt b/app/src/main/java/im/vector/riotredesign/features/home/HomePermalinkHandler.kt index b4809b169a..d70885042a 100644 --- a/app/src/main/java/im/vector/riotredesign/features/home/HomePermalinkHandler.kt +++ b/app/src/main/java/im/vector/riotredesign/features/home/HomePermalinkHandler.kt @@ -17,16 +17,16 @@ class HomePermalinkHandler(private val navigator: HomeNavigator) { } val permalinkData = PermalinkParser.parse(deepLink) when (permalinkData) { - is PermalinkData.EventLink -> { - navigator.openRoomDetail(permalinkData.roomIdOrAlias, permalinkData.eventId) + is PermalinkData.EventLink -> { + navigator.openRoomDetail(permalinkData.roomIdOrAlias, permalinkData.eventId, true) } - is PermalinkData.RoomLink -> { - navigator.openRoomDetail(permalinkData.roomIdOrAlias, null) + is PermalinkData.RoomLink -> { + navigator.openRoomDetail(permalinkData.roomIdOrAlias, null, true) } - is PermalinkData.GroupLink -> { + is PermalinkData.GroupLink -> { navigator.openGroupDetail(permalinkData.groupId) } - is PermalinkData.UserLink -> { + is PermalinkData.UserLink -> { navigator.openUserDetail(permalinkData.userId) } is PermalinkData.FallbackLink -> {