Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f8fbfbd2 by Philipp Hörist at 2025-04-16T23:36:02+02:00
refactor: Client: Improve logging
- - - - -
5ede5fa6 by Philipp Hörist at 2025-04-16T23:36:32+02:00
fix: MDS: Check if account is connected
Fixes #12271
- - - - -
2 changed files:
- gajim/common/client.py
- gajim/gtk/main.py
Changes:
=====================================
gajim/common/client.py
=====================================
@@ -111,7 +111,7 @@ def get_module(self, name: modules.ModulesLiteralT) ->
modules.ModulesT:
return modules.get_module(self._account, name)
def _set_state(self, state: ClientState) -> None:
- log.info('State: %s', state)
+ log.info('State: %s', repr(state))
self._state = state
@property
=====================================
gajim/gtk/main.py
=====================================
@@ -1128,6 +1128,9 @@ def mark_as_read(
# Read marker must be sent only once
return
+ if not app.account_is_connected(account):
+ return
+
client = app.get_client(account)
contact = client.get_module("Contacts").get_contact(jid)
assert not isinstance(contact, ResourceContact)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/3ed859ee1bd28f5dea68021989e373fb8f086cff...5ede5fa6b8a907f7e7aa70d785410374486a3020
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/3ed859ee1bd28f5dea68021989e373fb8f086cff...5ede5fa6b8a907f7e7aa70d785410374486a3020
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]