Commit a7bdbd2f authored by Tijmen de Mes's avatar Tijmen de Mes

Prevent double icons in encryption status

parent ff59bb3c
...@@ -720,6 +720,7 @@ class ChatWidget(base_class, ui_class): ...@@ -720,6 +720,7 @@ class ChatWidget(base_class, ui_class):
def update_message_encryption(self, id, is_secure=False): def update_message_encryption(self, id, is_secure=False):
if is_secure is True: if is_secure is True:
insertion_point = self.chat_element.findFirst(f'span#encryption-{id}') insertion_point = self.chat_element.findFirst(f'span#encryption-{id}')
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 show_loading_screen(self, visible): def show_loading_screen(self, visible):
......
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