diff --git a/status/statusgo_backend_new/messages.nim b/status/statusgo_backend_new/messages.nim index 88c1d98..dcf3ab5 100644 --- a/status/statusgo_backend_new/messages.nim +++ b/status/statusgo_backend_new/messages.nim @@ -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) \ No newline at end of file + result = callPrivateRPC("markMessagesSeen".prefix, payload) + +proc deleteMessageAndSend*(messageID: string): RpcResponse[JsonNode] {.raises: [Exception].} = + result = callPrivateRPC("deleteMessageAndSend".prefix, %* [messageID])