Philipp Hörist pushed to branch master at gajim / gajim
Commits:
01bd9fc3 by Philipp Hörist at 2026-06-22T21:23:21+02:00
fix: MUC: Fix fallback name for public MUCs
- - - - -
1 changed file:
- gajim/common/modules/muc.py
Changes:
=====================================
gajim/common/modules/muc.py
=====================================
@@ -1095,6 +1095,15 @@ def _room_join_complete(self, muc_data: MUCData) -> None:
self._con.get_module("MAM").request_archive_on_muc_join(muc_data.jid)
def _update_muc_fallback_name(self, jid: JID) -> None:
+ contact = self._get_contact(jid, groupchat=True)
+ assert isinstance(contact, GroupchatContact)
+ if contact.muc_context != "private":
+ app.storage.archive.set_contact_value(
+ self._account, jid, "fallback_name", None
+ )
+ contact.notify("name-update")
+ return
+
affiliations = self.get_affiliations(jid)
members: set[JID] = set()
members.update(*affiliations.values())
@@ -1122,7 +1131,7 @@ def _update_muc_fallback_name(self, jid: JID) -> None:
self._account, jid, "fallback_name", muc_name
)
self._log.info("Update fallback name for %s to %s", jid, muc_name)
- self._get_contact(jid, groupchat=True).notify("name-update")
+ contact.notify("name-update")
def request_voice(self, jid: JID) -> None:
message_id = self._nbxmpp("MUC").request_voice(jid)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/01bd9fc3e0658f2c10497cb0010ef9dccb8afb98
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/01bd9fc3e0658f2c10497cb0010ef9dccb8afb98
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]