fix: delete

This commit is contained in:
Richard Ramos 2021-08-13 09:13:11 -04:00 committed by RichΛrd
parent 09fb1a173c
commit 77c3e1b211
2 changed files with 6 additions and 4 deletions

View File

@ -123,9 +123,6 @@ QtObject:
else:
self.status.chat.editMessage(messageId, m)
proc deleteMessage*(self: MessageView, messageId: string) {.slot.} =
self.status.chat.deleteMessageAndSend(messageId)
proc sendMessage*(self: MessageView, message: string, replyTo: string, contentType: int = ContentType.Message.int, isStatusUpdate: bool = false, contactsString: string = "") {.slot.} =
self.sendOrEditMessage(message, replyTo, contentType, isStatusUpdate, contactsString, false, "")
@ -431,6 +428,11 @@ QtObject:
if (message.id == messageId):
return chatId
proc deleteMessage*(self: MessageView, messageId: string) {.slot.} =
self.status.chat.deleteMessageAndSend(messageId)
let chatId = self.getChatIdForMessage(messageId)
discard self.deleteMessage(chatId, messageId)
proc removeChat*(self: MessageView, chatId: string) =
if (not self.messageList.hasKey(chatId)):
return

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit ef014e25e2e4202cbeab8948f0c8f9f65f7806ee
Subproject commit 9f478db7ad06d0e84e43edf30c52ff586a9d266c