Fix bad migration state that could happen during a device transfer.

This commit is contained in:
Greyson Parrelli
2023-05-05 10:39:55 -04:00
committed by Alex Hart
parent 63ce2de3bf
commit 8c707555f2
13 changed files with 549 additions and 9 deletions

View File

@@ -168,7 +168,9 @@ public final class LiveRecipientCache {
}
if (selfId == null) {
Log.i(TAG, "Creating self for the first time.");
selfId = recipientTable.getAndPossiblyMerge(localAci, localE164);
recipientTable.updatePendingSelfData(selfId);
}
synchronized (localRecipientId) {