Philipp Hörist pushed to branch master at gajim / gajim


Commits:
d763fb9e by Philipp Hörist at 2025-04-26T23:32:25+02:00
fix: HistoryExport: Don’t fail when exporting messages from the room itself

- - - - -


1 changed file:

- gajim/gtk/history_export.py


Changes:

=====================================
gajim/gtk/history_export.py
=====================================
@@ -152,8 +152,10 @@ def _get_nickname(self, message: Message) -> str:
                 if message.occupant.nickname is not None:
                     return message.occupant.nickname
 
-            assert message.resource is not None
-            return message.resource
+            if message.resource is not None:
+                return message.resource
+
+            return _("Room")
 
         return str(message.remote.jid)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/d763fb9e9d145e57549a6bd4719ed60bfb105ac3

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/d763fb9e9d145e57549a6bd4719ed60bfb105ac3
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]

Reply via email to