Clean up ahead of PR.

pull/1/head
Matthew Chen 7 years ago
parent 3609275c20
commit 7ebeeda5f9

@ -785,16 +785,16 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
self.isEnvironmentSetup = YES; self.isEnvironmentSetup = YES;
//#ifdef DEBUG #ifdef DEBUG
// // A bug in orphan cleanup could be disastrous so let's only // A bug in orphan cleanup could be disastrous so let's only
// // run it in DEBUG builds for a few releases. // run it in DEBUG builds for a few releases.
// // //
// // TODO: Release to production once we have analytics. // TODO: Release to production once we have analytics.
// // TODO: Orphan cleanup is somewhat expensive - not least in doing a bunch // TODO: Orphan cleanup is somewhat expensive - not least in doing a bunch
// // of disk access. We might want to only run it "once per version" // of disk access. We might want to only run it "once per version"
// // or something like that in production. // or something like that in production.
// [OWSOrphanedDataCleaner auditAndCleanupAsync:nil]; [OWSOrphanedDataCleaner auditAndCleanupAsync:nil];
//#endif #endif
[OWSProfileManager.sharedManager fetchLocalUsersProfile]; [OWSProfileManager.sharedManager fetchLocalUsersProfile];
[[OWSReadReceiptManager sharedManager] prepareCachedValues]; [[OWSReadReceiptManager sharedManager] prepareCachedValues];

@ -1030,8 +1030,6 @@ NS_ASSUME_NONNULL_BEGIN
authorId:@"+19174054215" authorId:@"+19174054215"
sourceDeviceId:0 sourceDeviceId:0
messageBody:randomText]; messageBody:randomText];
// DDLogError(@"%@ sendFakeMessages incoming timestamp: %llu.", self.logTag,
// message.timestamp);
[message markAsReadWithTransaction:transaction sendReadReceipt:NO updateExpiration:NO]; [message markAsReadWithTransaction:transaction sendReadReceipt:NO updateExpiration:NO];
break; break;
} }
@ -1040,8 +1038,6 @@ NS_ASSUME_NONNULL_BEGIN
[[TSOutgoingMessage alloc] initWithTimestamp:[NSDate ows_millisecondTimeStamp] [[TSOutgoingMessage alloc] initWithTimestamp:[NSDate ows_millisecondTimeStamp]
inThread:thread inThread:thread
messageBody:randomText]; messageBody:randomText];
// DDLogError(@"%@ sendFakeMessages outgoing timestamp: %llu.", self.logTag,
// message.timestamp);
[message saveWithTransaction:transaction]; [message saveWithTransaction:transaction];
[message updateWithMessageState:TSOutgoingMessageStateUnsent transaction:transaction]; [message updateWithMessageState:TSOutgoingMessageStateUnsent transaction:transaction];
break; break;
@ -1069,8 +1065,6 @@ NS_ASSUME_NONNULL_BEGIN
pointer.uniqueId, pointer.uniqueId,
] ]
expiresInSeconds:0]; expiresInSeconds:0];
// DDLogError(@"%@ sendFakeMessages incoming attachment timestamp: %llu.", self.logTag,
// message.timestamp);
[message markAsReadWithTransaction:transaction sendReadReceipt:NO updateExpiration:NO]; [message markAsReadWithTransaction:transaction sendReadReceipt:NO updateExpiration:NO];
break; break;
} }
@ -1081,8 +1075,6 @@ NS_ASSUME_NONNULL_BEGIN
messageBody:nil messageBody:nil
isVoiceMessage:NO isVoiceMessage:NO
expiresInSeconds:0]; expiresInSeconds:0];
// DDLogError(@"%@ sendFakeMessages outgoing attachment timestamp: %llu.", self.logTag,
// message.timestamp);
NSString *filename = @"test.mp3"; NSString *filename = @"test.mp3";
UInt32 filesize = 16; UInt32 filesize = 16;

@ -1,5 +1,5 @@
// //
// Copyright (c) 2018 Open Whisper Systems. All rights reserved. // Copyright (c) 2017 Open Whisper Systems. All rights reserved.
// //
#import "SignalsNavigationController.h" #import "SignalsNavigationController.h"
@ -36,11 +36,7 @@ static double const STALLED_PROGRESS = 0.9;
CGRect bar = self.navigationBar.frame; CGRect bar = self.navigationBar.frame;
_socketStatusView.frame = CGRectMake(0, bar.size.height - 1.0f, self.view.frame.size.width, 1.0f); _socketStatusView.frame = CGRectMake(0, bar.size.height - 1.0f, self.view.frame.size.width, 1.0f);
_socketStatusView.progress = 0.0f; _socketStatusView.progress = 0.0f;
#ifdef INTERNAL
_socketStatusView.progressTintColor = [UIColor ows_destructiveRedColor];
#else
_socketStatusView.progressTintColor = [UIColor ows_fadedBlueColor]; _socketStatusView.progressTintColor = [UIColor ows_fadedBlueColor];
#endif
if (![_socketStatusView superview]) { if (![_socketStatusView superview]) {
[self.navigationBar addSubview:_socketStatusView]; [self.navigationBar addSubview:_socketStatusView];

@ -162,7 +162,7 @@ NS_ASSUME_NONNULL_BEGIN
OWSFail(@"%@ Missing path for attachment.", self.logTag); OWSFail(@"%@ Missing path for attachment.", self.logTag);
return NO; return NO;
} }
DDLogInfo(@"%@ Writing attachment data to file: %@", self.logTag, filePath); DDLogInfo(@"%@ Writing attachment to file: %@", self.logTag, filePath);
return [data writeToFile:filePath options:0 error:error]; return [data writeToFile:filePath options:0 error:error];
} }
@ -175,7 +175,7 @@ NS_ASSUME_NONNULL_BEGIN
OWSFail(@"%@ Missing path for attachment.", self.logTag); OWSFail(@"%@ Missing path for attachment.", self.logTag);
return NO; return NO;
} }
DDLogInfo(@"%@ Writing attachment data source to file: %@", self.logTag, filePath); DDLogInfo(@"%@ Writing attachment to file: %@", self.logTag, filePath);
return [dataSource writeToPath:filePath]; return [dataSource writeToPath:filePath];
} }

@ -1,5 +1,5 @@
// //
// Copyright (c) 2018 Open Whisper Systems. All rights reserved. // Copyright (c) 2017 Open Whisper Systems. All rights reserved.
// //
#import "TSIncomingMessage.h" #import "TSIncomingMessage.h"
@ -156,8 +156,8 @@ NS_ASSUME_NONNULL_BEGIN
return; return;
} }
// DDLogDebug( DDLogDebug(
// @"%@ marking as read uniqueId: %@ which has timestamp: %llu", self.logTag, self.uniqueId, self.timestamp); @"%@ marking as read uniqueId: %@ which has timestamp: %llu", self.logTag, self.uniqueId, self.timestamp);
_read = YES; _read = YES;
[self saveWithTransaction:transaction]; [self saveWithTransaction:transaction];
[self touchThreadWithTransaction:transaction]; [self touchThreadWithTransaction:transaction];

Loading…
Cancel
Save