Added undo

This commit is contained in:
M66B
2019-04-18 09:12:30 +02:00
parent 5af0dd9708
commit 198d9fba0f
7 changed files with 1746 additions and 11 deletions

View File

@@ -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())