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


Commits:
be53ab10 by Philipp Hörist at 2025-07-03T21:22:13+02:00
fix: GroupChat: Don’t allow sending messages if contact is not joined

Fixes #12351

- - - - -


1 changed file:

- gajim/gtk/util/misc.py


Changes:

=====================================
gajim/gtk/util/misc.py
=====================================
@@ -213,6 +213,9 @@ def allow_send_message(has_text: bool, contact: 
types.ChatContactT) -> bool:
         return bool(has_text and joined and not is_visitor)
 
     if isinstance(contact, GroupchatParticipant):
+        if not contact.is_available:
+            return False
+
         groupchat_contact = contact.room
         joined = groupchat_contact.is_joined
 



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

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