mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-14 14:34:39 +00:00
feat: Added new api for delete message
This commit is contained in:
parent
cea9a81863
commit
a10c32c7f4
@ -57,4 +57,7 @@ proc markAllMessagesFromChatWithIdAsRead*(chatId: string): RpcResponse[JsonNode]
|
||||
proc markCertainMessagesFromChatWithIdAsRead*(chatId: string, messageIds: seq[string]):
|
||||
RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* [chatId, messageIds]
|
||||
result = callPrivateRPC("markMessagesSeen".prefix, payload)
|
||||
result = callPrivateRPC("markMessagesSeen".prefix, payload)
|
||||
|
||||
proc deleteMessageAndSend*(messageID: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
result = callPrivateRPC("deleteMessageAndSend".prefix, %* [messageID])
|
||||
|
Loading…
x
Reference in New Issue
Block a user