Skip to content

Commit f68055c

Browse files
max-signalpete-signal
authored andcommitted
Fix inverted “is new registration” check
1 parent 38c3d1e commit f68055c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Signal/Registration/RegistrationCoordinatorImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ public class RegistrationCoordinatorImpl: RegistrationCoordinator {
12071207
.then { _ in
12081208
self.db.write { tx in
12091209
/// For new registrations, we want to force-set some state.
1210-
if self.persistedState.restoreMethod?.backupType != nil {
1210+
if self.persistedState.restoreMethod?.backupType == nil {
12111211
/// Read receipts should be on by default.
12121212
self.deps.receiptManager.setAreReadReceiptsEnabled(true, tx)
12131213
self.deps.receiptManager.setAreStoryViewedReceiptsEnabled(true, tx)

0 commit comments

Comments
 (0)