Philipp Hörist pushed to branch master at gajim / gajim

Commits:
0c8d88d3 by Philipp Hörist at 2017-11-02T16:00:18+01:00
Ensure that jid_id is created on new accounts

- - - - -


1 changed file:

- gajim/common/logger.py


Changes:

=====================================
gajim/common/logger.py
=====================================
--- a/gajim/common/logger.py
+++ b/gajim/common/logger.py
@@ -916,7 +916,9 @@ class Logger:
         app.config.set_per('accounts', account_name, 'roster_version', '')
 
         account_jid = app.get_jid_from_account(account_name)
-        account_jid_id = self.get_jid_id(account_jid)
+        # Execute get_jid_id() because this ensures on new accounts that the
+        # jid_id will be created
+        self.get_jid_id(account_jid, type_=JIDConstant.NORMAL_TYPE)
 
         # Delete old roster
         self.remove_roster(account_jid)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/0c8d88d372249ce497eadab49285e174b5c322f5

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/0c8d88d372249ce497eadab49285e174b5c322f5
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to