Ensure outbox

This commit is contained in:
M66B
2020-03-25 08:47:25 +01:00
parent 83820ef382
commit 1d8d7e9c1c
3 changed files with 16 additions and 8 deletions

View File

@@ -221,6 +221,16 @@ public class EntityFolder extends EntityOrder implements Serializable {
}
}
static EntityFolder getOutbox() {
EntityFolder outbox = new EntityFolder();
outbox.name = "OUTBOX";
outbox.type = EntityFolder.OUTBOX;
outbox.synchronize = false;
outbox.sync_days = 0;
outbox.keep_days = 0;
return outbox;
}
static String getNotificationChannelId(long id) {
return "notification.folder." + id;
}