Fixed message text lost on wakeup

This commit is contained in:
M66B 2019-11-11 11:36:04 +01:00
parent db7608a833
commit 240f96c194
1 changed files with 3 additions and 0 deletions

View File

@ -390,6 +390,9 @@ public class ServiceUI extends IntentService {
db.message().deleteMessage(id);
message.id = null;
message.id = db.message().insertMessage(message);
if (message.content)
EntityMessage.getFile(this, id)
.renameTo(message.getFile(this));
db.message().setMessageSnoozed(message.id, null);
EntityOperation.queue(this, message, EntityOperation.SEEN, false, false);
}