|
|
@ -118,7 +118,17 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
- (void)configureWithThread:(TSThread *)thread
|
|
|
|
- (void)configureWithThread:(TSThread *)thread
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
OWSAssert(thread);
|
|
|
|
self.thread = thread;
|
|
|
|
self.thread = thread;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ([self.thread isKindOfClass:[TSContactThread class]]) {
|
|
|
|
|
|
|
|
self.title = NSLocalizedString(
|
|
|
|
|
|
|
|
@"CONVERSATION_SETTINGS_CONTACT_INFO_TITLE", @"Navbar title when viewing settings for a 1-on-1 thread");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
self.title = NSLocalizedString(
|
|
|
|
|
|
|
|
@"CONVERSATION_SETTINGS_GROUP_INFO_TITLE", @"Navbar title when viewing settings for a group thread");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[self updateEditButton];
|
|
|
|
[self updateEditButton];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -173,9 +183,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[super viewDidLoad];
|
|
|
|
[super viewDidLoad];
|
|
|
|
|
|
|
|
|
|
|
|
// Translations
|
|
|
|
|
|
|
|
self.title = NSLocalizedString(@"CONVERSATION_SETTINGS", @"title for conversation settings screen");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_disappearingMessagesDurationLabel = [UILabel new];
|
|
|
|
_disappearingMessagesDurationLabel = [UILabel new];
|
|
|
|
|
|
|
|
|
|
|
|
self.disappearingMessagesDurations = [OWSDisappearingMessagesConfiguration validDurationsSeconds];
|
|
|
|
self.disappearingMessagesDurations = [OWSDisappearingMessagesConfiguration validDurationsSeconds];
|
|
|
|