Fix build warning.

pull/1/head
Matthew Chen 6 years ago
parent 00f5e4d3ef
commit 3d6b9e1dc3

@ -1,5 +1,5 @@
// //
// Copyright (c) 2018 Open Whisper Systems. All rights reserved. // Copyright (c) 2019 Open Whisper Systems. All rights reserved.
// //
#import "TSInteraction.h" #import "TSInteraction.h"
@ -172,8 +172,8 @@ NSString *NSStringFromOWSInteractionType(OWSInteractionType value)
- (void)saveWithTransaction:(YapDatabaseReadWriteTransaction *)transaction { - (void)saveWithTransaction:(YapDatabaseReadWriteTransaction *)transaction {
if (!self.uniqueId) { if (!self.uniqueId) {
OWSFailDebug(self.uniqueId); OWSFailDebug(@"Missing uniqueId.");
self.uniqueId = [NSUUID new]; self.uniqueId = [NSUUID new].UUIDString;
} }
[super saveWithTransaction:transaction]; [super saveWithTransaction:transaction];

Loading…
Cancel
Save