stop requesting MAM archive when we get the complete='true' attribute. Fixes #8170

This commit is contained in:
Yann Leboulanger 2015-10-24 13:32:07 +02:00
parent 1e01ca81c6
commit 89f6efefde
1 changed files with 3 additions and 1 deletions

View File

@ -103,6 +103,8 @@ class ConnectionArchive313(ConnectionArchive):
last = set_.getTagData('last') last = set_.getTagData('last')
if last: if last:
gajim.config.set_per('accounts', self.name, 'last_mam_id', last) gajim.config.set_per('accounts', self.name, 'last_mam_id', last)
complete = fin_.getAttr('complete')
if complete != 'true':
self.request_archive(after=last) self.request_archive(after=last)
del self.awaiting_answers[queryid_] del self.awaiting_answers[queryid_]