Use global readWrite connection

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 468f7524ef
commit 6e6a7446d0

@ -3123,10 +3123,7 @@ typedef enum : NSUInteger {
- (YapDatabaseConnection *)editingDatabaseConnection
{
if (!_editingDatabaseConnection) {
_editingDatabaseConnection = [self.primaryStorage newDatabaseConnection];
}
return _editingDatabaseConnection;
return OWSPrimaryStorage.sharedManager.dbReadWriteConnection;
}
- (void)uiDatabaseDidUpdateExternally:(NSNotification *)notification

Loading…
Cancel
Save