Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2023-04-23 12:59:23 +0300
committerwurstsalat <mailtrash@posteo.de>2023-04-23 12:59:23 +0300
commitafc5a11e6c2d620946e6bfd6ff9b37b22f52db48 (patch)
tree92debea3361414e9b8778a05eddfe71ef1f900b3
parentb10e13cc21d904b518454d72a19068d8980915ad (diff)
cfix: ChatBanner: Disable share button for PM contacts
-rw-r--r--gajim/gtk/chat_banner.py3
1 files changed, 2 insertions, 1 deletions
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: