Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
0ad6ea73 by wurstsalat at 2022-03-14T21:48:36+01:00
MoreMenuButton: Allow quotes only if we are joined
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/widgets.py
Changes:
=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -69,6 +69,10 @@ def __init__(self,
def _on_click(self, _button: Gtk.Button) -> None:
show_retract = False
if isinstance(self._contact, GroupchatContact):
+ if not self._contact.is_joined:
+ self._create_popover(False)
+ return
+
disco_info = app.storage.cache.get_last_disco_info(
self._contact.jid)
assert disco_info is not None
@@ -92,6 +96,8 @@ def _create_popover(self, show_retract: bool) -> None:
self_contact = self._contact.get_self()
assert self_contact is not None
quote_enabled = not self_contact.role.is_visitor
+ else:
+ quote_enabled = False
quote_button = Gtk.ModelButton()
quote_button.set_halign(Gtk.Align.START)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/0ad6ea738f35036571cb54de6b9326e9937b8384
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/0ad6ea738f35036571cb54de6b9326e9937b8384
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