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 - (YapDatabaseConnection *)editingDatabaseConnection
{ {
if (!_editingDatabaseConnection) { return OWSPrimaryStorage.sharedManager.dbReadWriteConnection;
_editingDatabaseConnection = [self.primaryStorage newDatabaseConnection];
}
return _editingDatabaseConnection;
} }
- (void)uiDatabaseDidUpdateExternally:(NSNotification *)notification - (void)uiDatabaseDidUpdateExternally:(NSNotification *)notification

Loading…
Cancel
Save