Commit 2217f812 authored by Tijmen de Mes's avatar Tijmen de Mes

Added function to remove message from chat window

parent 18b5b924
...@@ -747,6 +747,14 @@ class ChatWidget(base_class, ui_class): ...@@ -747,6 +747,14 @@ class ChatWidget(base_class, ui_class):
insertion_point.removeAllChildren() insertion_point.removeAllChildren()
insertion_point.appendInside(f'<img src={self.encrypted_icon.filename} class="status-icon is-secure">') insertion_point.appendInside(f'<img src={self.encrypted_icon.filename} class="status-icon is-secure">')
def remove_message(self, id):
exists = self.chat_element.findFirst(f'#message-{id}')
if exists.isNull():
return
else:
exists.removeFromDocument()
def show_loading_screen(self, visible): def show_loading_screen(self, visible):
if visible: if visible:
self.loading_element.appendInside(self.loading_template) self.loading_element.appendInside(self.loading_template)
......
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