mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Added uuid to answers
This commit is contained in:
@@ -984,6 +984,10 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
long id = answer.id;
|
||||
answer.id = null;
|
||||
|
||||
EntityAnswer existing = db.answer().getAnswerByUUID(answer.uuid);
|
||||
if (existing != null)
|
||||
db.answer().deleteAnswer(existing.id);
|
||||
|
||||
answer.id = db.answer().insertAnswer(answer);
|
||||
xAnswer.put(id, answer.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user