From 0c8d88d372249ce497eadab49285e174b5c322f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Thu, 2 Nov 2017 15:59:45 +0100 Subject: [PATCH] Ensure that jid_id is created on new accounts --- gajim/common/logger.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gajim/common/logger.py b/gajim/common/logger.py index 27036b0ce..798405093 100644 --- 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)