Philipp Hörist pushed to branch master at gajim / gajim
Commits:
aadf903f by Philipp Hörist at 2025-10-19T22:37:41+02:00
cfix: Chatstate: Create contacts implicitly when composers are requested
- - - - -
1 changed file:
- gajim/common/modules/chatstates.py
Changes:
=====================================
gajim/common/modules/chatstates.py
=====================================
@@ -263,11 +263,8 @@ def get_composers(self, muc_jid: JID) ->
list[GroupchatParticipant]:
'''
composers: list[GroupchatParticipant] = []
for jid in self._muc_composers[muc_jid]:
- contact = self._get_contact_if_exists(jid)
- if not isinstance(contact, GroupchatParticipant):
- self._log.warning(
- 'Unexpected class returned for %s -> %s', jid,
contact.__class__)
- continue
+ contact = self._get_contact(jid, groupchat=True)
+ assert isinstance(contact, GroupchatParticipant)
composers.append(contact)
return composers
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/aadf903fc4394aa174dc32e47cdd38b12d370cb4
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/aadf903fc4394aa174dc32e47cdd38b12d370cb4
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]