|
|
@ -46,13 +46,10 @@ NSString *const kTSStorageManager_MayHaveLinkedDevices = @"kTSStorageManager_May
|
|
|
|
{
|
|
|
|
{
|
|
|
|
OWSAssert(dbConnection);
|
|
|
|
OWSAssert(dbConnection);
|
|
|
|
|
|
|
|
|
|
|
|
@synchronized(self)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return [dbConnection boolForKey:kTSStorageManager_MayHaveLinkedDevices
|
|
|
|
return [dbConnection boolForKey:kTSStorageManager_MayHaveLinkedDevices
|
|
|
|
inCollection:kTSStorageManager_OWSDeviceCollection
|
|
|
|
inCollection:kTSStorageManager_OWSDeviceCollection
|
|
|
|
defaultValue:NO];
|
|
|
|
defaultValue:NO];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (void)setMayHaveLinkedDevices:(BOOL)value dbConnection:(YapDatabaseConnection *)dbConnection
|
|
|
|
- (void)setMayHaveLinkedDevices:(BOOL)value dbConnection:(YapDatabaseConnection *)dbConnection
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -67,13 +64,10 @@ NSString *const kTSStorageManager_MayHaveLinkedDevices = @"kTSStorageManager_May
|
|
|
|
{
|
|
|
|
{
|
|
|
|
OWSAssert(transaction);
|
|
|
|
OWSAssert(transaction);
|
|
|
|
|
|
|
|
|
|
|
|
@synchronized(self)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
[transaction setObject:@(value)
|
|
|
|
[transaction setObject:@(value)
|
|
|
|
forKey:kTSStorageManager_MayHaveLinkedDevices
|
|
|
|
forKey:kTSStorageManager_MayHaveLinkedDevices
|
|
|
|
inCollection:kTSStorageManager_OWSDeviceCollection];
|
|
|
|
inCollection:kTSStorageManager_OWSDeviceCollection];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)hasReceivedSyncMessageInLastSeconds:(NSTimeInterval)intervalSeconds
|
|
|
|
- (BOOL)hasReceivedSyncMessageInLastSeconds:(NSTimeInterval)intervalSeconds
|
|
|
|
{
|
|
|
|
{
|
|
|
|