Stop running contacts migration

pull/365/head
Niels Andriesse 4 years ago
parent 0b645626d1
commit b43f22945c

@ -58,7 +58,7 @@ public class Contact : NSObject, NSCoding { // NSObject/NSCoding conformance is
public required init?(coder: NSCoder) { public required init?(coder: NSCoder) {
guard let sessionID = coder.decodeObject(forKey: "sessionID") as! String? else { return nil } guard let sessionID = coder.decodeObject(forKey: "sessionID") as! String? else { return nil }
self.sessionID = sessionID self.sessionID = sessionID
self.isTrusted = coder.decodeBool(forKey: "isTrusted") isTrusted = coder.decodeBool(forKey: "isTrusted")
if let name = coder.decodeObject(forKey: "displayName") as! String? { self.name = name } if let name = coder.decodeObject(forKey: "displayName") as! String? { self.name = name }
if let nickname = coder.decodeObject(forKey: "nickname") as! String? { self.nickname = nickname } if let nickname = coder.decodeObject(forKey: "nickname") as! String? { self.nickname = nickname }
if let profilePictureURL = coder.decodeObject(forKey: "profilePictureURL") as! String? { self.profilePictureURL = profilePictureURL } if let profilePictureURL = coder.decodeObject(forKey: "profilePictureURL") as! String? { self.profilePictureURL = profilePictureURL }

@ -25,9 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
// This should all migrations which do NOT qualify as safeBlockingMigrations: // This should all migrations which do NOT qualify as safeBlockingMigrations:
- (NSArray<OWSDatabaseMigration *> *)allMigrations - (NSArray<OWSDatabaseMigration *> *)allMigrations
{ {
return @[ return @[];
[SNContactsMigration new]
];
} }
- (void)assumeAllExistingMigrationsRun - (void)assumeAllExistingMigrationsRun

Loading…
Cancel
Save