Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
9fe3d46b by wurstsalat at 2022-03-14T23:09:16+01:00
GroupchatControl: Disable invite and details if we are not joined
- - - - -
1 changed file:
- gajim/gtk/controls/groupchat.py
Changes:
=====================================
gajim/gtk/controls/groupchat.py
=====================================
@@ -328,12 +328,16 @@ def update_actions(self, *args: Any) -> None:
self._get_action('contact-information-').set_enabled(joined)
+ self._get_action('groupchat-details-').set_enabled(joined)
+
self._get_action('execute-command-').set_enabled(joined)
self._get_action('ban-').set_enabled(joined)
self._get_action('kick-').set_enabled(joined)
+ self._get_action('invite-').set_enabled(joined)
+
def remove_actions(self) -> None:
super().remove_actions()
actions = [
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9fe3d46bf5b8a8f6eb4d5405205afd0b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9fe3d46bf5b8a8f6eb4d5405205afd0b…
You're receiving this email because of your account on dev.gajim.org.
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/0ad6ea738f35036571cb54de6b9326e9…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0ad6ea738f35036571cb54de6b9326e9…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d07380d0 by lovetox at 2022-03-14T18:18:49+01:00
Remove unused import
- - - - -
1 changed file:
- gajim/gtk/menus.py
Changes:
=====================================
gajim/gtk/menus.py
=====================================
@@ -16,7 +16,6 @@
from __future__ import annotations
-from typing import Any
from typing import Iterator
from typing import cast
from typing import Optional
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/d07380d0b5e5a2c3a96c1324d33a40a7…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/d07380d0b5e5a2c3a96c1324d33a40a7…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
b31ab564 by lovetox at 2022-03-14T19:22:25+01:00
Websocket: Don’t fail on invalid host-meta files
- - - - -
1 changed file:
- nbxmpp/addresses.py
Changes:
=====================================
nbxmpp/addresses.py
=====================================
@@ -161,7 +161,7 @@ class ServerAddresses(Observable):
try:
uri = parse_websocket_uri(response_body.data)
- except ValueError as error:
+ except Exception as error:
log.info('Error parsing websocket uri: %s', error)
self._on_request_resolved()
return
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/b31ab5646d3cf82dacaeeda5…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/b31ab5646d3cf82dacaeeda5…
You're receiving this email because of your account on dev.gajim.org.