mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 00:21:10 +00:00
Fixed revisions race condition
This commit is contained in:
parent
3736601a26
commit
535b08f795
2 changed files with 7 additions and 1 deletions
|
@ -4409,6 +4409,12 @@ class Core {
|
|||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
EntityMessage existing = db.message().getMessage(message.id);
|
||||
if (existing != null) {
|
||||
message.revision = existing.revision;
|
||||
message.revisions = existing.revisions;
|
||||
}
|
||||
|
||||
db.message().updateMessage(message);
|
||||
|
||||
if (process)
|
||||
|
|
|
@ -6298,7 +6298,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
bottom_navigation.getMenu().findItem(R.id.action_redo).setVisible(draft.revision < draft.revisions);
|
||||
|
||||
if (args.getBundle("extras").getBoolean("silent")) {
|
||||
etBody.setTag(etBody.getText());
|
||||
etBody.setTag(null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue