Philipp Hörist pushed to branch master at gajim / gajim
Commits:
eb8177b8 by nicoco at 2026-07-10T10:30:19+00:00
imprv: Unescape JID in various parts of the UI
- - - - -
3 changed files:
- gajim/common/modules/contacts.py
- gajim/common/modules/muc.py
- gajim/gtk/tooltips.py
Changes:
=====================================
gajim/common/modules/contacts.py
=====================================
@@ -16,6 +16,7 @@
from gi.repository import Gdk
from gi.repository import GLib
+from nbxmpp import unescape_localpart
from nbxmpp.const import Affiliation
from nbxmpp.const import Chatstate
from nbxmpp.const import PresenceShow
@@ -515,7 +516,7 @@ def original_name(self) -> str:
return self._jid.domain
assert self._jid.localpart is not None
- return self._jid.localpart
+ return unescape_localpart(self._jid.localpart)
def get_tune(self) -> TuneData | None:
return self.get_module("UserTune").get_contact_tune(self._jid)
=====================================
gajim/common/modules/muc.py
=====================================
@@ -970,7 +970,7 @@ def _on_muc_normal_user_message(
if isinstance(contact, BareContact):
nick = contact.name
else:
- nick = str(properties.muc_user.jid)
+ nick = properties.muc_user.jid.to_user_string()
assert properties.muc_user.affiliation is not None
event = events.MUCAffiliationChanged(
=====================================
gajim/gtk/tooltips.py
=====================================
@@ -82,7 +82,7 @@ def _populate_grid(
# JID
if contact.real_jid is not None:
- self._ui.jid.set_text(str(contact.real_jid.bare))
+ self._ui.jid.set_text(contact.real_jid.to_user_string())
self._ui.jid.set_visible(True)
# Affiliation
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/eb8177b8e20ca6bc121e17a7aea83087c4c3efa7
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/eb8177b8e20ca6bc121e17a7aea83087c4c3efa7
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]