From 07df28568faab1f1288312655bf4a3e49cb8fb7f Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 21 Jan 2023 17:50:25 +0100 Subject: [PATCH] Cloud sync: update swipe left/right --- app/src/main/java/eu/faircode/email/CloudSync.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/CloudSync.java b/app/src/main/java/eu/faircode/email/CloudSync.java index 39725c6190..d6d48fa88d 100644 --- a/app/src/main/java/eu/faircode/email/CloudSync.java +++ b/app/src/main/java/eu/faircode/email/CloudSync.java @@ -429,8 +429,14 @@ public class CloudSync { } else { raccount.id = laccount.id; raccount.notify = laccount.notify; // TODO - raccount.swipe_left = laccount.swipe_left; // TODO - raccount.swipe_right = laccount.swipe_right; // TODO + if (left != null) { + left = db.folder().getFolderByName(laccount.id, left.name); + raccount.swipe_left = (left == null ? null : left.id); + } + if (right != null) { + right = db.folder().getFolderByName(laccount.id, right.name); + raccount.swipe_right = (right == null ? null : right.id); + } raccount.move_to = laccount.move_to; // TODO db.account().updateAccount(raccount); }