mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
parent
e86a625b92
commit
847ad5e7de
@ -705,12 +705,12 @@ method onCommunityChannelEdited*(self: Module, chat: ChatDto) =
|
||||
|
||||
method switchToOrCreateOneToOneChat*(self: Module, chatId: string) =
|
||||
# One To One chat is available only in the `Chat` section
|
||||
if (self.controller.getMySectionId() == singletonInstance.userProfile.getPubKey()) and (self.delegate.getActiveSectionId() != self.controller.getMySectionId()):
|
||||
self.delegate.setActiveSectionById(self.controller.getMySectionId())
|
||||
# if its not `Chat` section - skip
|
||||
else:
|
||||
if (self.controller.getMySectionId() != singletonInstance.userProfile.getPubKey()):
|
||||
return
|
||||
|
||||
if (self.delegate.getActiveSectionId() != self.controller.getMySectionId()):
|
||||
self.delegate.setActiveSectionById(self.controller.getMySectionId())
|
||||
|
||||
if(self.chatContentModules.hasKey(chatId)):
|
||||
self.setActiveItem(chatId)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user