parent
28f09eeb82
commit
d41625932e
|
@ -609,9 +609,16 @@ method onMessageEdited*(self: Module, message: MessageDto) =
|
||||||
let mentionedUsersPks = itemBeforeChange.mentionedUsersPks
|
let mentionedUsersPks = itemBeforeChange.mentionedUsersPks
|
||||||
let communityChats = self.controller.getCommunityDetails().chats
|
let communityChats = self.controller.getCommunityDetails().chats
|
||||||
|
|
||||||
|
var updatedText = ""
|
||||||
|
if message.contentType == ContentType.BridgeMessage:
|
||||||
|
# message from bridge does not have any tags, we need to add them here to show correctly edited message
|
||||||
|
updatedText = "<p>" & message.bridgeMessage.content & "</p>"
|
||||||
|
else:
|
||||||
|
updatedText = self.controller.getRenderedText(message.parsedText, communityChats)
|
||||||
|
|
||||||
self.view.model().updateEditedMsg(
|
self.view.model().updateEditedMsg(
|
||||||
message.id,
|
message.id,
|
||||||
self.controller.getRenderedText(message.parsedText, communityChats),
|
updatedText,
|
||||||
message.text,
|
message.text,
|
||||||
message.parsedText,
|
message.parsedText,
|
||||||
message.contentType,
|
message.contentType,
|
||||||
|
|
Loading…
Reference in New Issue