Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
c34f3da0 by wurstsalat at 2022-05-28T23:09:57+02:00
fix: ChatControl: Don't update AV actions for PMs

Fixes: #10921

- - - - -


1 changed file:

- gajim/gtk/controls/chat.py


Changes:

=====================================
gajim/gtk/controls/chat.py
=====================================
@@ -197,12 +197,13 @@ def update_actions(self) -> None:
             online and self._client.get_module('Blocking').supported)
 
         # Jingle AV
-        self._get_action('start-voice-call-').set_enabled(
-            online and self.contact.supports_audio()
-            and sys.platform != 'win32')
-        self._get_action('start-video-call-').set_enabled(
-            online and self.contact.supports_video()
-            and sys.platform != 'win32')
+        if self.type.is_chat:
+            self._get_action('start-voice-call-').set_enabled(
+                online and self.contact.supports_audio()
+                and sys.platform != 'win32')
+            self._get_action('start-video-call-').set_enabled(
+                online and self.contact.supports_video()
+                and sys.platform != 'win32')
 
         # Send message
         has_text = self.msg_textview.has_text()



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/c34f3da062c1fbb34041223535ef16b863790aea
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to