mirror of
https://github.com/status-im/status-lib.git
synced 2025-02-06 01:24:04 +00:00
feat: Adding edit message functionality
This commit is contained in:
parent
e9342e73c6
commit
3b6e9c799c
@ -61,3 +61,6 @@ proc markCertainMessagesFromChatWithIdAsRead*(chatId: string, messageIds: seq[st
|
||||
|
||||
proc deleteMessageAndSend*(messageID: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
result = callPrivateRPC("deleteMessageAndSend".prefix, %* [messageID])
|
||||
|
||||
proc editMessage*(messageId: string, msg: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
result = callPrivateRPC("editMessage".prefix, %* [{"id": messageId, "text": msg}])
|
||||
|
Loading…
x
Reference in New Issue
Block a user