Fix crash

pull/33/head
Niels Andriesse 6 years ago
parent 38629b4c4e
commit 30aac6a94d

@ -707,16 +707,15 @@ typedef void (^BuildOutgoingMessageCompletionBlock)(TSOutgoingMessage *savedMess
[OWSPrimaryStorage.sharedManager.newDatabaseConnection [OWSPrimaryStorage.sharedManager.newDatabaseConnection
readWriteWithBlock:^(YapDatabaseReadWriteTransaction *transaction) { readWriteWithBlock:^(YapDatabaseReadWriteTransaction *transaction) {
[self removeAllObjectsInCollection:[TSThread collection] class:[TSThread class] transaction:transaction]; [self removeAllObjectsInCollection:[TSThread collection]
class:[TSThread class]
transaction:transaction];
[self removeAllObjectsInCollection:[TSInteraction collection] [self removeAllObjectsInCollection:[TSInteraction collection]
class:[TSInteraction class] class:[TSInteraction class]
transaction:transaction]; transaction:transaction];
[self removeAllObjectsInCollection:[TSAttachment collection] [self removeAllObjectsInCollection:[TSAttachment collection]
class:[TSAttachment class] class:[TSAttachment class]
transaction:transaction]; transaction:transaction];
[self removeAllObjectsInCollection:[SignalRecipient collection]
class:[SignalRecipient class]
transaction:transaction];
}]; }];
[TSAttachmentStream deleteAttachments]; [TSAttachmentStream deleteAttachments];
} }

Loading…
Cancel
Save