From 5ca9d66212a073f83809d40a65405633bf90cab6 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Thu, 8 Apr 2021 15:51:31 +0200 Subject: [PATCH] fix(Communities): ensure newly created community is opened --- src/app/chat/views/communities.nim | 1 + .../AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/chat/views/communities.nim b/src/app/chat/views/communities.nim index e9a6a973ea..1bf4e10326 100644 --- a/src/app/chat/views/communities.nim +++ b/src/app/chat/views/communities.nim @@ -213,6 +213,7 @@ QtObject: self.communityList.addCommunityItemToList(community) self.joinedCommunityList.addCommunityItemToList(community) + self.setActiveCommunity(community.id) self.communitiesChanged() except Exception as e: error "Error creating the community", msg = e.msg diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml index 0fffd76f13..c3b4c9e1af 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml @@ -401,7 +401,6 @@ ModalPopup { return creatingError.open() } - // TODO Open the community once we have designs for it popup.close() }