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


Commits:
3349412a by Philipp Hörist at 2024-05-21T13:26:02+02:00
cfix: Reactions: Disable reactions if stanza-id is not supported in MUCs

- - - - -


1 changed file:

- gajim/gtk/conversation/rows/widgets.py


Changes:

=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -145,9 +145,12 @@ def _get_reply_visible(self) -> bool:
         return True
 
     def _get_reactions_visible(self) -> bool:
-        if (isinstance(self._contact, GroupchatContact) and
-                self._contact.muc_context == 'public'):
-            return self._contact.supports(Namespace.OCCUPANT_ID)
+        if isinstance(self._contact, GroupchatContact):
+            if not self._contact.supports(Namespace.SID):
+                return False
+
+            if self._contact.muc_context == 'public':
+                return self._contact.supports(Namespace.OCCUPANT_ID)
 
         return True
 



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

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