diff options
Diffstat (limited to 'src/gui_interface.py')
-rw-r--r-- | src/gui_interface.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui_interface.py b/src/gui_interface.py index 723437943..c5cbe565d 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -1139,13 +1139,15 @@ class Interface: # Else disable autoaway gajim.sleeper_state[account] = 'off' - if obj.conn.archiving_136_supported: + if obj.conn.archiving_136_supported and gajim.config.get_per('accounts', + account, 'sync_logs_with_server'): # Start merging logs from server obj.conn.request_modifications_page(gajim.config.get_per('accounts', account, 'last_archiving_time')) gajim.config.set_per('accounts', account, 'last_archiving_time', time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())) - if obj.conn.archiving_313_supported: + if obj.conn.archiving_313_supported and gajim.config.get_per('accounts', + account, 'sync_logs_with_server'): mam_id = gajim.config.get_per('accounts', account, 'last_mam_id') if mam_id: obj.conn.request_archive(after=mam_id) |