Philipp Hörist pushed to branch master at gajim / gajim
Commits:
bc98b95c by lovetox at 2020-04-05T08:52:14+02:00
Presence: Remove auto auth if we unsubscribe
- - - - -
1 changed file:
- gajim/common/modules/presence.py
Changes:
=====================================
gajim/common/modules/presence.py
=====================================
@@ -59,7 +59,7 @@ class Presence(BaseModule):
self.automatically_added = []
# list of jid to auto-authorize
- self.jids_for_auto_auth = []
+ self._jids_for_auto_auth = set()
def _presence_received(self, _con, stanza, properties):
if properties.from_muc:
@@ -252,8 +252,9 @@ class Presence(BaseModule):
properties.jid, is_transport,
auto_auth, properties.nickname)
- if auto_auth or jid in self.jids_for_auto_auth:
+ if auto_auth or jid in self._jids_for_auto_auth:
self.send_presence(fjid, 'subscribed')
+ self._jids_for_auto_auth.discard(jid)
self._log.info('Auto respond with subscribed: %s', jid)
return
@@ -304,7 +305,9 @@ class Presence(BaseModule):
def unsubscribed(self, jid):
if not app.account_is_connected(self._account):
return
+
self._log.info('Unsubscribed: %s', jid)
+ self._jids_for_auto_auth.discard(jid)
self.send_presence(jid, 'unsubscribed')
def unsubscribe(self, jid, remove_auth=True):
@@ -318,6 +321,7 @@ class Presence(BaseModule):
app.config.del_per('contacts', j)
else:
self._log.info('Unsubscribe from %s', jid)
+ self._jids_for_auto_auth.discard(jid)
self._con.get_module('Roster').unsubscribe(jid)
self._con.get_module('Roster').set_item(jid)
@@ -330,7 +334,7 @@ class Presence(BaseModule):
self._log.info('Request Subscription to %s', jid)
if auto_auth:
- self.jids_for_auto_auth.append(jid)
+ self.jids_for_auto_auth.add(jid)
infos = {'jid': jid}
if name:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/bc98b95c885ecd4fd903f54df0a3a748…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/bc98b95c885ecd4fd903f54df0a3a748…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6ec7a686 by lovetox at 2020-04-01T22:13:19+02:00
TransformChatToMUC: Fix adding muc serice JID
Fixes #10044
- - - - -
1 changed file:
- gajim/dialogs.py
Changes:
=====================================
gajim/dialogs.py
=====================================
@@ -917,8 +917,11 @@ class TransformChatToMUC:
self.server_list_comboboxentry.add_attribute(cell, 'text', 0)
# get the muc server of our server
- if 'jabber' in app.connections[account].muc_jid:
- server_list.append(app.connections[account].muc_jid['jabber'])
+ con = app.connections[account]
+ service_jid = con.get_module('MUC').service_jid
+ if service_jid is not None:
+ server_list.append(str(service_jid))
+
# add servers or recently joined groupchats
recently_groupchat = app.config.get_per('accounts', account, 'recent_groupchats').split()
for g in recently_groupchat:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6ec7a686c9ace16359b1c523bd94519b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6ec7a686c9ace16359b1c523bd94519b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
050985c6 by lovetox at 2020-04-01T19:17:45+02:00
Windows: Don't store password in keyring in portable mode
Otherwise its not really portable if it stores data in the system keyring
- - - - -
1 changed file:
- gajim/common/config.py
Changes:
=====================================
gajim/common/config.py
=====================================
@@ -689,6 +689,9 @@ class Config:
for opt in self.__options[0]:
self.__options[1][opt] = self.__options[0][opt][Option.VAL]
+ if gajim.IS_PORTABLE:
+ self.__options[1]['use_keyring'] = False
+
def _really_save(self):
from gajim.common import app
if app.interface:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/050985c651e6d138b3d4743d970d2390…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/050985c651e6d138b3d4743d970d2390…
You're receiving this email because of your account on dev.gajim.org.