Force sync old messages

This commit is contained in:
M66B
2020-12-02 16:58:32 +01:00
parent 638a639016
commit 125c7066ff
5 changed files with 23 additions and 7 deletions

View File

@@ -284,7 +284,7 @@ public class EntityFolder extends EntityOrder implements Serializable {
return "notification.folder." + id;
}
JSONArray getSyncArgs() {
JSONArray getSyncArgs(boolean force) {
int days = sync_days;
if (last_sync != null) {
int ago_days = (int) ((new Date().getTime() - last_sync) / (24 * 3600 * 1000L)) + 1;
@@ -298,6 +298,7 @@ public class EntityFolder extends EntityOrder implements Serializable {
jargs.put(download);
jargs.put(auto_delete);
jargs.put(initialize);
jargs.put(force);
return jargs;
}