Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
45f63468 by wurstsalat at 2022-10-24T21:31:51+02:00
fix: Settings: Check if account is connected before trying to get context
Fixes #11243
- - - - -
1 changed file:
- gajim/common/settings.py
Changes:
=====================================
gajim/common/settings.py
=====================================
@@ -913,15 +913,16 @@ def set_group_chat_setting(self,
default = ACCOUNT_SETTINGS['group_chat'][setting]
if default in (HAS_APP_DEFAULT, HAS_ACCOUNT_DEFAULT):
-
- client = app.get_client(account)
- contact = client.get_module('Contacts').get_contact(jid)
- context = contact.muc_context
- if context is None:
- # If there is no disco info available
- # to determine the context assume public
- log.warning('Unable to determine context for: %s', jid)
- context = 'public'
+ context = 'public'
+ if app.account_is_connected(account):
+ client = app.get_client(account)
+ contact = client.get_module('Contacts').get_contact(jid)
+ context = contact.muc_context
+ if context is None:
+ # If there is no disco info available
+ # to determine the context assume public
+ log.warning('Unable to determine context for: %s', jid)
+ context = 'public'
default_store = APP_SETTINGS
if default is HAS_ACCOUNT_DEFAULT:
@@ -957,7 +958,8 @@ def set_group_chat_setting(self,
def set_group_chat_settings(self,
setting: str,
value: SETTING_TYPE,
- context: str = None) -> None:
+ context: Optional[str] = None
+ ) -> None:
for account, acc_settings in self._account_settings.items():
for jid in acc_settings['group_chat']:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/45f63468d109a6805d4c954f6536c436…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/45f63468d109a6805d4c954f6536c436…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
ddc26220 by wurstsalat at 2022-10-23T13:34:40+02:00
fix: Accounts: Use account label for disable confirmation
- - - - -
1 changed file:
- gajim/gtk/accounts.py
Changes:
=====================================
gajim/gtk/accounts.py
=====================================
@@ -573,9 +573,10 @@ def _disable() -> None:
not app.get_client(account).state.is_disconnected):
# Connecting or connected
window = cast(AccountsWindow, get_app_window('AccountsWindow'))
+ account_label = app.get_account_label(account)
ConfirmationDialog(
_('Disable Account'),
- _('Account %s is still connected') % account,
+ _('Account %s is still connected') % account_label,
_('All chat and group chat windows will be closed.'),
[DialogButton.make('Cancel',
callback=lambda: switch.set_active(True)),
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ddc26220272db55763ce596927f14c8f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ddc26220272db55763ce596927f14c8f…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch omemo_integration at gajim / gajim
Commits:
465a4a84 by wurstsalat at 2022-10-23T11:50:15+02:00
fix: Fix import
- - - - -
1 changed file:
- gajim/common/storage/omemo.py
Changes:
=====================================
gajim/common/storage/omemo.py
=====================================
@@ -30,7 +30,7 @@
from omemo_dr.state.signedprekeyrecord import SignedPreKeyRecord
from omemo_dr.state.sessionrecord import SessionRecord
from omemo_dr.state.prekeyrecord import PreKeyRecord
-from omemo_dr.invalidkeyidexception import InvalidKeyIdException
+from omemo_dr.exceptions import InvalidKeyIdException
from omemo_dr.ecc.djbec import DjbECPrivateKey
from omemo_dr.ecc.djbec import CurvePublicKey
from omemo_dr.identitykey import IdentityKey
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/465a4a84412573ecf69f5d41e53e92f0…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/465a4a84412573ecf69f5d41e53e92f0…
You're receiving this email because of your account on dev.gajim.org.