mirror of
https://github.com/status-im/status-lib.git
synced 2025-02-28 03:50:34 +00:00
Merge pull request #2 from status-im/fix/issue-3329
fix(@desktop/communities): processing response from InviteUsers call
This commit is contained in:
commit
23be94a923
@ -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…
x
Reference in New Issue
Block a user