Commit 08f46fa8 authored by Tijmen de Mes's avatar Tijmen de Mes

Added support to replace rendered chat message text

parent 6b48bfd9
......@@ -696,6 +696,11 @@ class ChatWidget(base_class, ui_class):
self.chat_element.appendInside(message.to_html(self.style, user_icons=self.user_icons_css_class))
self.last_message = message
def update_message_text(self, id, text):
insertion_point = self.chat_element.findFirst(f'#text-{id}')
insertion_point.removeAllChildren()
insertion_point.appendInside(text)
def update_message_status(self, id, status):
if status == 'pending':
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment