fix(@desktop/communities): processing response from InviteUsers call
This commit is contained in:
parent
0b24d7a341
commit
8965c4bcca
|
@ -505,10 +505,12 @@ proc leaveCommunity*(self: ChatModel, communityId: string) =
|
|||
status_chat.leaveCommunity(communityId)
|
||||
|
||||
proc inviteUserToCommunity*(self: ChatModel, communityId: string, pubKey: string) =
|
||||
status_chat.inviteUsersToCommunity(communityId, @[pubKey])
|
||||
let response = status_chat.inviteUsersToCommunity(communityId, @[pubKey])
|
||||
discard self.processMessageUpdateAfterSend(response)
|
||||
|
||||
proc inviteUsersToCommunity*(self: ChatModel, communityId: string, pubKeys: seq[string]) =
|
||||
status_chat.inviteUsersToCommunity(communityId, pubKeys)
|
||||
let response = status_chat.inviteUsersToCommunity(communityId, pubKeys)
|
||||
discard self.processMessageUpdateAfterSend(response)
|
||||
|
||||
proc removeUserFromCommunity*(self: ChatModel, communityId: string, pubKey: string) =
|
||||
status_chat.removeUserFromCommunity(communityId, pubKey)
|
||||
|
|
|
@ -453,8 +453,8 @@ proc joinCommunity*(communityId: string) =
|
|||
proc leaveCommunity*(communityId: string) =
|
||||
discard callPrivateRPC("leaveCommunity".prefix, %*[communityId])
|
||||
|
||||
proc inviteUsersToCommunity*(communityId: string, pubKeys: seq[string]) =
|
||||
discard callPrivateRPC("inviteUsersToCommunity".prefix, %*[{
|
||||
proc inviteUsersToCommunity*(communityId: string, pubKeys: seq[string]): string =
|
||||
callPrivateRPC("inviteUsersToCommunity".prefix, %*[{
|
||||
"communityId": communityId,
|
||||
"users": pubKeys
|
||||
}])
|
||||
|
|
Loading…
Reference in New Issue