Philipp Hörist pushed to branch master at gajim / gajim
Commits:
57baf561 by Philipp Hörist at 2026-09-06T13:11:07+02:00
fix: GroupChat: Don't fail on determine groupchat name
A groupchat can also be hosted just on the domain, even though this is not
recommended.
- - - - -
1 changed file:
- gajim/common/util/muc.py
Changes:
=====================================
gajim/common/util/muc.py
=====================================
@@ -157,8 +157,7 @@ def get_groupchat_name(client: types.Client, jid: JID) ->
str:
if name := contact.get_name():
return name
- assert jid.localpart is not None
- return jid.localpart
+ return jid.localpart or jid.domain
def get_group_chat_nick(account: str, room_jid: JID | str) -> str:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/57baf561746d8ac86a45a0bd55f36db5e04db591
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/57baf561746d8ac86a45a0bd55f36db5e04db591
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]