Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86a53747 authored by Michael Enoma's avatar Michael Enoma
Browse files

Make sure "memory key" in MemorizingMessagingListener doesn't change

Previously, renaming an account could lead to old sync state being retained. I noticed this when the progress bar beneath the toolbar was shown even though no sync was in progress.
parent 957b5324
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ class MemorizingMessagingListener extends SimpleMessagingListener {
    }

    private static String getMemoryKey(Account account, long folderId) {
        return account.getDescription() + ":" + folderId;
        return account.getUuid() + ":" + folderId;
    }

    private enum MemorizingState { STARTED, FINISHED, FAILED }