mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 12:24:26 +01:00
Added undo
This commit is contained in:
@@ -136,6 +136,7 @@ public class EntityMessage implements Serializable {
|
||||
@NonNull
|
||||
public Boolean ui_browsed = false;
|
||||
public Long ui_snoozed;
|
||||
public Integer revision; // compose
|
||||
public String warning; // persistent
|
||||
public String error; // volatile
|
||||
public Long last_attempt; // send
|
||||
@@ -157,6 +158,13 @@ public class EntityMessage implements Serializable {
|
||||
return new File(dir, id.toString());
|
||||
}
|
||||
|
||||
File getFile(Context context, int revision) {
|
||||
File dir = new File(context.getFilesDir(), "revision");
|
||||
if (!dir.exists())
|
||||
dir.mkdir();
|
||||
return new File(dir, id + "." + revision);
|
||||
}
|
||||
|
||||
File getRefFile(Context context) {
|
||||
File dir = new File(context.getFilesDir(), "references");
|
||||
if (!dir.exists())
|
||||
|
||||
Reference in New Issue
Block a user