Make sure we are always updating the last deleted id

pull/493/head
Beaudan Brown 6 years ago
parent 1cf6ccafc6
commit 97746307f0

@ -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;
}
}

Loading…
Cancel
Save