Send fixes

This commit is contained in:
M66B
2019-09-02 10:48:11 +02:00
parent 03f97c7e3b
commit 91e9212289
4 changed files with 23 additions and 13 deletions

View File

@@ -188,13 +188,17 @@ public class EntityMessage implements Serializable {
return addresses.toArray(new Address[0]);
}
File getFile(Context context) {
static File getFile(Context context, Long id) {
File dir = new File(context.getFilesDir(), "messages");
if (!dir.exists())
dir.mkdir();
return new File(dir, id.toString());
}
File getFile(Context context) {
return getFile(context, id);
}
File getFile(Context context, int revision) {
File dir = new File(context.getFilesDir(), "revision");
if (!dir.exists())