Philipp Hörist pushed to branch master at gajim / gajim
Commits:
b24d9286 by lovetox at 2022-08-12T18:44:25+02:00
refactor: MessageRow: Simplify code
kind can only be 'incoming' or 'outgoing'
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/message.py
Changes:
=====================================
gajim/gtk/conversation/rows/message.py
=====================================
@@ -141,11 +141,10 @@ def __init__(self,
timestamp_label = self.create_timestamp_widget(self.timestamp)
self._meta_box.pack_start(timestamp_label, False, True, 0)
- if kind in ('incoming', 'incoming_queue', 'outgoing'):
- if additional_data is not None:
- encryption_img = self._get_encryption_image(additional_data)
- if encryption_img:
- self._meta_box.pack_start(encryption_img, False, True, 0)
+ if additional_data is not None:
+ encryption_img = self._get_encryption_image(additional_data)
+ if encryption_img:
+ self._meta_box.pack_start(encryption_img, False, True, 0)
if display_marking and app.settings.get_account_setting(
account, 'enable_security_labels'):
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b24d9286cbe8e1fa106e41701911fb584f999adc
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/b24d9286cbe8e1fa106e41701911fb584f999adc
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits