From afc5a11e6c2d620946e6bfd6ff9b37b22f52db48 Mon Sep 17 00:00:00 2001 From: wurstsalat Date: Sun, 23 Apr 2023 11:59:23 +0200 Subject: cfix: ChatBanner: Disable share button for PM contacts --- gajim/gtk/chat_banner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gajim/gtk/chat_banner.py b/gajim/gtk/chat_banner.py index 2b2294571..dd1fc7dec 100644 --- a/gajim/gtk/chat_banner.py +++ b/gajim/gtk/chat_banner.py @@ -329,7 +329,8 @@ class ChatBanner(Gtk.Box, EventHelper): def _update_share_box(self) -> None: assert self._contact is not None - self._ui.share_menu_button.set_sensitive(True) + self._ui.share_menu_button.set_sensitive( + not self._contact.is_pm_contact) self._ui.jid_label.set_text(str(self._contact.jid)) def _on_share_clicked(self, _button: Gtk.Button) -> None: -- cgit v1.2.3