mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-20 02:28:56 +00:00
fix(@desktop/chat): start chat after contact request accepted
fixes #2902
This commit is contained in:
parent
6564bd8497
commit
5f8a6f33fa
@ -124,7 +124,10 @@ proc join*(self: ChatModel, chatId: string, chatType: ChatType, ensName: string
|
|||||||
|
|
||||||
|
|
||||||
proc createOneToOneChat*(self: ChatModel, publicKey: string, ensName: string = "") =
|
proc createOneToOneChat*(self: ChatModel, publicKey: string, ensName: string = "") =
|
||||||
if self.hasChannel(publicKey): return
|
if self.hasChannel(publicKey):
|
||||||
|
self.emitTopicAndJoin(self.channels[publicKey])
|
||||||
|
return
|
||||||
|
|
||||||
var chat = newChat(publicKey, ChatType.OneToOne)
|
var chat = newChat(publicKey, ChatType.OneToOne)
|
||||||
if ensName != "":
|
if ensName != "":
|
||||||
chat.name = ensName
|
chat.name = ensName
|
||||||
|
Loading…
x
Reference in New Issue
Block a user