mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-12 07:14:37 +00:00
go-waku store protocol
This commit is contained in:
parent
561991da67
commit
5daf7894f5
@ -461,3 +461,10 @@ QtObject:
|
||||
|
||||
proc markMessageAsSent*(self: ChatsView, chat: string, messageId: string) =
|
||||
self.messageView.markMessageAsSent(chat, messageId)
|
||||
|
||||
proc requestAllHistoricMessages(self: ChatsView) {.slot.} =
|
||||
debug "Requesting messages"
|
||||
# TODO: the mailservers must change depending on whether we are using wakuV1 or wakuV2
|
||||
# in the meantime I'm hardcoding a specific mailserver
|
||||
echo status_mailservers.setMailserver("16Uiu2HAmVVi6Q4j7MAKVibquW8aA27UNrA4Q8Wkz9EetGViu8ZF1")
|
||||
echo status_mailservers.requestAllHistoricMessages()
|
||||
|
@ -12,6 +12,9 @@ proc ping*(mailservers: seq[string], timeoutMs: int): string =
|
||||
proc update*(peer: string) =
|
||||
discard callPrivateRPC("updateMailservers".prefix, %* [[peer]])
|
||||
|
||||
proc setMailserver*(peer: string): string =
|
||||
return callPrivateRPC("setMailserver".prefix, %* [peer])
|
||||
|
||||
proc delete*(peer: string) =
|
||||
discard callPrivateRPC("mailservers_deleteMailserver", %* [peer])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user