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,7 +103,9 @@ class ConnectionArchive313(ConnectionArchive):
last = set_.getTagData('last')
if last:
gajim.config.set_per('accounts', self.name, 'last_mam_id', last)
self.request_archive(after=last)
complete = fin_.getAttr('complete')
if complete != 'true':
self.request_archive(after=last)
del self.awaiting_answers[queryid_]