mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-19 18:18:38 +00:00
fix(Communities): Open #general
channel by default on creation
Closes: #5841
This commit is contained in:
parent
e607b7e223
commit
5967ce6ce8
@ -602,6 +602,9 @@ method communityJoined*[T](
|
|||||||
|
|
||||||
if setActive:
|
if setActive:
|
||||||
self.setActiveSection(communitySectionItem)
|
self.setActiveSection(communitySectionItem)
|
||||||
|
if(channelGroup.chats.len > 0):
|
||||||
|
let chatId = channelGroup.chats[0].id
|
||||||
|
self.channelGroupModules[community.id].setActiveItemSubItem(chatId, "")
|
||||||
|
|
||||||
method communityLeft*[T](self: Module[T], communityId: string) =
|
method communityLeft*[T](self: Module[T], communityId: string) =
|
||||||
if(not self.channelGroupModules.contains(communityId)):
|
if(not self.channelGroupModules.contains(communityId)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user