|
|
@ -551,6 +551,7 @@ const CGFloat kIconViewLength = 24;
|
|
|
|
UISlider *slider = [UISlider new];
|
|
|
|
UISlider *slider = [UISlider new];
|
|
|
|
slider.maximumValue = (float)(strongSelf.disappearingMessagesDurations.count - 1);
|
|
|
|
slider.maximumValue = (float)(strongSelf.disappearingMessagesDurations.count - 1);
|
|
|
|
slider.minimumValue = 0;
|
|
|
|
slider.minimumValue = 0;
|
|
|
|
|
|
|
|
slider.tintColor = UIColor.lokiGreen;
|
|
|
|
slider.continuous = YES; // NO fires change event only once you let go
|
|
|
|
slider.continuous = YES; // NO fires change event only once you let go
|
|
|
|
slider.value = strongSelf.disappearingMessagesConfiguration.durationIndex;
|
|
|
|
slider.value = strongSelf.disappearingMessagesConfiguration.durationIndex;
|
|
|
|
[slider addTarget:strongSelf
|
|
|
|
[slider addTarget:strongSelf
|
|
|
@ -600,6 +601,7 @@ const CGFloat kIconViewLength = 24;
|
|
|
|
|
|
|
|
|
|
|
|
// Group settings section.
|
|
|
|
// Group settings section.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
if (self.isGroupThread) {
|
|
|
|
if (self.isGroupThread) {
|
|
|
|
NSArray *groupItems = @[
|
|
|
|
NSArray *groupItems = @[
|
|
|
|
[OWSTableItem
|
|
|
|
[OWSTableItem
|
|
|
@ -651,6 +653,7 @@ const CGFloat kIconViewLength = 24;
|
|
|
|
@"Conversation settings table section title")
|
|
|
|
@"Conversation settings table section title")
|
|
|
|
items:groupItems]];
|
|
|
|
items:groupItems]];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// Mute thread section.
|
|
|
|
// Mute thread section.
|
|
|
|
|
|
|
|
|
|
|
@ -703,6 +706,7 @@ const CGFloat kIconViewLength = 24;
|
|
|
|
[weakSelf.navigationController pushViewController:vc animated:YES];
|
|
|
|
[weakSelf.navigationController pushViewController:vc animated:YES];
|
|
|
|
}]];
|
|
|
|
}]];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!self.thread.isGroupThread) {
|
|
|
|
[mainSection
|
|
|
|
[mainSection
|
|
|
|
addItem:
|
|
|
|
addItem:
|
|
|
|
[OWSTableItem
|
|
|
|
[OWSTableItem
|
|
|
@ -776,6 +780,7 @@ const CGFloat kIconViewLength = 24;
|
|
|
|
@"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.
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -992,10 +997,12 @@ const CGFloat kIconViewLength = 24;
|
|
|
|
|
|
|
|
|
|
|
|
[lastTitleView autoPinEdgeToSuperviewEdge:ALEdgeBottom];
|
|
|
|
[lastTitleView autoPinEdgeToSuperviewEdge:ALEdgeBottom];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!self.thread.isGroupThread) {
|
|
|
|
[mainSectionHeader
|
|
|
|
[mainSectionHeader
|
|
|
|
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self
|
|
|
|
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self
|
|
|
|
action:@selector(conversationNameTouched:)]];
|
|
|
|
action:@selector(conversationNameTouched:)]];
|
|
|
|
mainSectionHeader.userInteractionEnabled = YES;
|
|
|
|
mainSectionHeader.userInteractionEnabled = YES;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, mainSectionHeader);
|
|
|
|
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, mainSectionHeader);
|
|
|
|
|
|
|
|
|
|
|
|