Clean up ahead of CR.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-08-18 15:22:27 -04:00
parent 4578a72ab2
commit a340c9ebdc
2 changed files with 1 additions and 19 deletions

View File

@ -2193,7 +2193,7 @@ typedef enum : NSUInteger {
OWSFail(@"Unexpected tap for system message.");
break;
case OWSContactOffersAdapter:
// TODO:
OWSFail(@"Unexpected tap for contacts offer.");
break;
default:
DDLogDebug(@"Unhandled bubble touch for interaction: %@.", interaction);

View File

@ -236,23 +236,6 @@ NS_ASSUME_NONNULL_BEGIN
}
}];
__block TSInteraction *lastCallOrMessage = nil;
[[transaction ext:TSMessageDatabaseViewExtensionName]
enumerateRowsInGroup:thread.uniqueId
withOptions:NSEnumerationReverse
usingBlock:^(
NSString *collection, NSString *key, id object, id metadata, NSUInteger index, BOOL *stop) {
OWSAssert([object isKindOfClass:[TSInteraction class]]);
if ([object isKindOfClass:[TSIncomingMessage class]] ||
[object isKindOfClass:[TSOutgoingMessage class]] ||
[object isKindOfClass:[TSCall class]]) {
lastCallOrMessage = object;
*stop = YES;
}
}];
NSUInteger outgoingMessageCount =
[[TSDatabaseView threadOutgoingMessageDatabaseView:transaction] numberOfItemsInGroup:thread.uniqueId];
NSUInteger threadMessageCount =
@ -439,7 +422,6 @@ NS_ASSUME_NONNULL_BEGIN
= (shouldHaveBlockOffer || shouldHaveAddToContactsOffer || shouldHaveAddToProfileWhitelistOffer);
if (isContactThread) {
TSContactThread *contactThread = (TSContactThread *)thread;
// TODO: Set this property.
if (contactThread.hasDismissedOffers) {
shouldHaveContactOffers = NO;
}