|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
#import "BlockListUIUtils.h"
|
|
|
|
|
#import "ContactsViewHelper.h"
|
|
|
|
|
#import "FingerprintViewController.h"
|
|
|
|
|
#import "NotificationSoundsViewController.h"
|
|
|
|
|
#import "OWSAddToContactViewController.h"
|
|
|
|
|
#import "OWSBlockingManager.h"
|
|
|
|
|
#import "PhoneNumber.h"
|
|
|
|
@ -438,6 +439,24 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
[contents addSection:mainSection];
|
|
|
|
|
|
|
|
|
|
// Notifications section.
|
|
|
|
|
|
|
|
|
|
OWSTableSection *notificationsSection = [OWSTableSection new];
|
|
|
|
|
notificationsSection.headerTitle = NSLocalizedString(@"CONVERSATION_SETTINGS_NOTIFICATIONS_SECTION",
|
|
|
|
|
@"Label for notifications section of conversation settings view.");
|
|
|
|
|
[notificationsSection
|
|
|
|
|
addItem:[OWSTableItem disclosureItemWithText:
|
|
|
|
|
NSLocalizedString(@"NOTIFICATIONS_ITEM_SOUND",
|
|
|
|
|
@"Label for settings view that allows user to change the notification sound.")
|
|
|
|
|
actionBlock:^{
|
|
|
|
|
NotificationSoundsViewController *vc =
|
|
|
|
|
[NotificationSoundsViewController new];
|
|
|
|
|
vc.thread = weakSelf.thread;
|
|
|
|
|
[weakSelf.navigationController pushViewController:vc animated:YES];
|
|
|
|
|
}]];
|
|
|
|
|
|
|
|
|
|
[contents addSection:notificationsSection];
|
|
|
|
|
|
|
|
|
|
// Group settings section.
|
|
|
|
|
|
|
|
|
|
if (self.isGroupThread) {
|
|
|
|
|