Re-enable search for regular conversations

pull/49/head
Niels Andriesse 5 years ago
parent 6f18ddfbb8
commit 6b0454317e

@ -374,8 +374,10 @@ const CGFloat kIconViewLength = 24;
actionBlock:^{ actionBlock:^{
[weakSelf showMediaGallery]; [weakSelf showMediaGallery];
}]]; }]];
if (SSKFeatureFlags.conversationSearch) { if (SSKFeatureFlags.conversationSearch) {
* ========
*/
[mainSection addItem:[OWSTableItem [mainSection addItem:[OWSTableItem
itemWithCustomCellBlock:^{ itemWithCustomCellBlock:^{
NSString *title = NSLocalizedString(@"CONVERSATION_SETTINGS_SEARCH", NSString *title = NSLocalizedString(@"CONVERSATION_SETTINGS_SEARCH",
@ -390,6 +392,7 @@ const CGFloat kIconViewLength = 24;
actionBlock:^{ actionBlock:^{
[weakSelf tappedConversationSearch]; [weakSelf tappedConversationSearch];
}]]; }]];
/*
} }
if (!isNoteToSelf && !self.isGroupThread && self.thread.hasSafetyNumbers) { if (!isNoteToSelf && !self.isGroupThread && self.thread.hasSafetyNumbers) {
@ -652,12 +655,12 @@ const CGFloat kIconViewLength = 24;
// Mute thread section. // Mute thread section.
if (!isNoteToSelf) { if (!isNoteToSelf) {
OWSTableSection *notificationsSection = [OWSTableSection new]; // OWSTableSection *notificationsSection = [OWSTableSection new];
// We need a section header to separate the notifications UI from the group settings UI. // We need a section header to separate the notifications UI from the group settings UI.
notificationsSection.headerTitle = NSLocalizedString( // notificationsSection.headerTitle = NSLocalizedString(
@"SETTINGS_SECTION_NOTIFICATIONS", @"Label for the notifications section of conversation settings view."); // @"SETTINGS_SECTION_NOTIFICATIONS", @"Label for the notifications section of conversation settings view.");
[notificationsSection [mainSection
addItem:[OWSTableItem addItem:[OWSTableItem
itemWithCustomCellBlock:^{ itemWithCustomCellBlock:^{
UITableViewCell *cell = UITableViewCell *cell =
@ -700,7 +703,7 @@ const CGFloat kIconViewLength = 24;
[weakSelf.navigationController pushViewController:vc animated:YES]; [weakSelf.navigationController pushViewController:vc animated:YES];
}]]; }]];
[notificationsSection [mainSection
addItem: addItem:
[OWSTableItem [OWSTableItem
itemWithCustomCellBlock:^{ itemWithCustomCellBlock:^{
@ -769,9 +772,9 @@ const CGFloat kIconViewLength = 24;
actionBlock:^{ actionBlock:^{
[weakSelf showMuteUnmuteActionSheet]; [weakSelf showMuteUnmuteActionSheet];
}]]; }]];
notificationsSection.footerTitle = NSLocalizedString( mainSection.footerTitle = NSLocalizedString(
@"MUTE_BEHAVIOR_EXPLANATION", @"An explanation of the consequences of muting a thread."); @"MUTE_BEHAVIOR_EXPLANATION", @"An explanation of the consequences of muting a thread.");
[contents addSection:notificationsSection]; // [contents addSection:notificationsSection];
} }
// Block Conversation section. // Block Conversation section.

@ -175,7 +175,7 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled";
+ (UIColor *)galleryHighlightColor + (UIColor *)galleryHighlightColor
{ {
return [UIColor colorWithRGBHex:0x1f8fe8]; return UIColor.lokiGreen;
} }
+ (UIColor *)conversationButtonBackgroundColor + (UIColor *)conversationButtonBackgroundColor

@ -81,12 +81,7 @@ NS_ASSUME_NONNULL_BEGIN
+ (UIColor *)ows_systemPrimaryButtonColor + (UIColor *)ows_systemPrimaryButtonColor
{ {
static UIColor *sharedColor; return UIColor.lokiGreen;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^(void) {
sharedColor = [UIView new].tintColor;
});
return sharedColor;
} }
+ (UIColor *)ows_messageBubbleLightGrayColor + (UIColor *)ows_messageBubbleLightGrayColor

Loading…
Cancel
Save