From 27417805533a0d2bef0c6d8afcf1d3a7ce77c231 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 20 Jun 2019 17:05:15 +0200 Subject: [PATCH] Change scope of PermalinkHandler --- .../im/vector/riotredesign/features/home/HomeModule.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/HomeModule.kt b/vector/src/main/java/im/vector/riotredesign/features/home/HomeModule.kt index 9d12a1cf4a..044bf88120 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/HomeModule.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/HomeModule.kt @@ -50,10 +50,6 @@ class HomeModule { HomeNavigator() } - scope(HOME_SCOPE) { - PermalinkHandler(get(), get()) - } - // Fragment scopes factory { @@ -98,6 +94,10 @@ class HomeModule { GroupSummaryController() } + scope(ROOM_DETAIL_SCOPE) { + PermalinkHandler(get(), get()) + } + scope(ROOM_DETAIL_SCOPE) { (fragment: Fragment) -> val commandController = AutocompleteCommandController(get()) AutocompleteCommandPresenter(fragment.requireContext(), commandController)