Daniel Brötzmann pushed to branch newcontrol at gajim / gajim
Commits:
e196d613 by wurstsalat at 2022-07-11T20:38:37+02:00
MessageActionBox: Use client's is_available
- - - - -
1 changed file:
- gajim/gtk/message_actions_box.py
Changes:
=====================================
gajim/gtk/message_actions_box.py
=====================================
@@ -233,7 +233,7 @@ def _on_user_state_changed(self, *args: Any) -> None:
def _update_message_input_state(self) -> None:
assert self._client
- state = self._client.state.is_connected
+ state = self._client.state.is_available
if isinstance(self._contact, GroupchatContact):
state = self._contact.is_joined
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e196d613a5282c6422e63fb9b379eb65…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e196d613a5282c6422e63fb9b379eb65…
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:
d1780d81 by lovetox at 2022-07-10T17:42:47+02:00
perf: Use cache when calling JID.new_as_bare()
- - - - -
1 changed file:
- nbxmpp/protocol.py
Changes:
=====================================
nbxmpp/protocol.py
=====================================
@@ -700,9 +700,7 @@ class JID:
def new_as_bare(self) -> JID:
if self.resource is None:
return self
- new = asdict(self)
- new.pop('resource')
- return JID(**new)
+ return JID.from_string(self.bare)
def bare_match(self, other: Union[str, JID]) -> bool:
if isinstance(other, str):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/d1780d814db35b02f72ac445…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/d1780d814db35b02f72ac445…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
0bb75cdf by lovetox at 2022-07-10T17:31:45+02:00
chore: Ignore pyright error
- - - - -
1 changed file:
- gajim/common/const.py
Changes:
=====================================
gajim/common/const.py
=====================================
@@ -1180,6 +1180,6 @@ def is_offline(self):
def __lt__(self, other: Union[PresenceShowExt, PresenceShow]) -> bool:
if isinstance(other, PresenceShowExt):
return False
- if not isinstance(other, PresenceShow):
+ if not isinstance(other, PresenceShow): # pyright: ignore
return NotImplemented
return True
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0bb75cdff065bbd622158a2ce78887bc…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0bb75cdff065bbd622158a2ce78887bc…
You're receiving this email because of your account on dev.gajim.org.