Merge pull request #493 from BeaudanBrown/delete-polling-fix

Make sure we are always updating the last deleted id
This commit is contained in:
Mikunj Varsani 2019-09-12 12:44:37 +10:00 committed by GitHub
commit d302004225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -474,14 +474,9 @@ class LokiPublicChannelAPI {
});
});
// if we had a problem break the loop
if (res.response.data.length < 200) {
break;
}
// update where we last checked
this.deleteLastId = res.response.meta.max_id;
({ more } = res.response);
more = res.response.more && res.response.data.length >= params.count;
}
}