Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
20fd2b91 by wurstsalat at 2024-07-11T20:52:47+02:00
fix: ChatListRow: Indicate received file for encrypted messages
- - - - -
1 changed file:
- gajim/gtk/chat_list_row.py
Changes:
=====================================
gajim/gtk/chat_list_row.py
=====================================
@@ -268,18 +268,18 @@ def set_message_text(self,
icon = None
if icon_name is not None:
icon = Gio.Icon.new_for_string(icon_name)
- if oob:
- if app.preview_manager.is_previewable(text, oob):
- scheme = urlparse(text).scheme
- if scheme == 'geo':
- location = split_geo_uri(text)
- icon = Gio.Icon.new_for_string('mark-location')
- text = format_geo_coords(
- float(location.lat), float(location.lon))
- else:
- file_name = filename_from_uri(text)
- icon, file_type = guess_simple_file_type(text)
- text = f'{file_type} ({file_name})'
+
+ if app.preview_manager.is_previewable(text, oob or []):
+ scheme = urlparse(text).scheme
+ if scheme == 'geo':
+ location = split_geo_uri(text)
+ icon = Gio.Icon.new_for_string('mark-location')
+ text = format_geo_coords(
+ float(location.lat), float(location.lon))
+ else:
+ file_name = filename_from_uri(text)
+ icon, file_type = guess_simple_file_type(text)
+ text = f'{file_type} ({file_name})'
text = GLib.markup_escape_text(text)
if text.startswith('/me ') and nickname is not None:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/20fd2b9197908b1037e158a2437d3032437f535f
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/20fd2b9197908b1037e158a2437d3032437f535f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]