mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Merge pull request #493 from BeaudanBrown/delete-polling-fix
Make sure we are always updating the last deleted id
This commit is contained in:
commit
d302004225
|
@ -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…
Reference in a new issue