From 5c1b160ee006eb69af720680b44da4b725569334 Mon Sep 17 00:00:00 2001 From: Tomas Timinskas Date: Wed, 13 Dec 2023 13:02:08 -0300 Subject: [PATCH] Create tribe button enabled for virtual accounts --- .../src/main/java/chat/sphinx/dashboard/ui/ChatListViewModel.kt | 2 +- .../main/java/chat/sphinx/dashboard/ui/DashboardViewModel.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/ChatListViewModel.kt b/sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/ChatListViewModel.kt index 819ae893b5..07c131b6e3 100644 --- a/sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/ChatListViewModel.kt +++ b/sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/ChatListViewModel.kt @@ -221,7 +221,7 @@ internal class ChatListViewModel @Inject constructor( chatListFooterButtonsViewStateContainer.updateViewState( ChatListFooterButtonsViewState.ButtonsVisibility( addFriendVisible = args.argChatListType == ChatType.CONVERSATION, - createTribeVisible = args.argChatListType == ChatType.TRIBE && !owner.isOnVirtualNode(), + createTribeVisible = args.argChatListType == ChatType.TRIBE, discoverTribesVisible = args.argChatListType == ChatType.TRIBE, ) ) diff --git a/sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/DashboardViewModel.kt b/sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/DashboardViewModel.kt index 1d1911022d..19cb681e00 100644 --- a/sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/DashboardViewModel.kt +++ b/sphinx/screens/dashboard/dashboard/src/main/java/chat/sphinx/dashboard/ui/DashboardViewModel.kt @@ -927,7 +927,7 @@ internal class DashboardViewModel @Inject constructor( chatListFooterButtonsViewStateContainer.updateViewState( ChatListFooterButtonsViewState.ButtonsVisibility( addFriendVisible = true, - createTribeVisible = !owner.isOnVirtualNode(), + createTribeVisible = true, discoverTribesVisible = false ) )