request archiving logs only since last time we requested it
This commit is contained in:
parent
bbd740b62f
commit
3d4688e9fa
|
@ -352,6 +352,7 @@ class Config:
|
|||
'send_os_info': [ opt_bool, True ],
|
||||
'log_encrypted_sessions': [opt_bool, True, _('When negotiating an encrypted session, should Gajim assume you want your messages to be logged?')],
|
||||
'roster_version': [opt_str, ''],
|
||||
'last_archiving_time': [opt_str, '1970-01-01T00:00:00Z', _('Last time we syncronized with logs from server.')],
|
||||
}, {}),
|
||||
'statusmsg': ({
|
||||
'message': [ opt_str, '' ],
|
||||
|
|
|
@ -1563,7 +1563,9 @@ class Interface:
|
|||
self.enable_music_listener()
|
||||
# Start merging logs from server
|
||||
gajim.connections[account].request_modifications_page(
|
||||
'1970-01-01T00:00:00Z')
|
||||
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()))
|
||||
|
||||
def handle_event_metacontacts(self, account, tags_list):
|
||||
gajim.contacts.define_metacontacts(account, tags_list)
|
||||
|
|
Loading…
Reference in New Issue