mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-14 22:44:29 +00:00
feat: Added new api for delete message
This commit is contained in:
parent
cea9a81863
commit
a10c32c7f4
@ -58,3 +58,6 @@ proc markCertainMessagesFromChatWithIdAsRead*(chatId: string, messageIds: seq[st
|
||||
RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* [chatId, messageIds]
|
||||
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