This commit is contained in:
nielsandriesse 2020-12-08 14:22:12 +11:00
parent f920163131
commit 1ac0e14d04
1 changed files with 4 additions and 2 deletions

View File

@ -561,7 +561,8 @@ typedef enum : NSUInteger {
return; return;
} }
if ([self.thread isKindOfClass:TSGroupThread.class] && !((TSGroupThread *)self.thread).usesSharedSenderKeys) { if ([self.thread isKindOfClass:TSGroupThread.class] && !((TSGroupThread *)self.thread).isOpenGroup
&& !((TSGroupThread *)self.thread).usesSharedSenderKeys) {
self.inputToolbar.hidden = YES; self.inputToolbar.hidden = YES;
} else if (self.userLeftGroup) { } else if (self.userLeftGroup) {
self.inputToolbar.hidden = YES; // user has requested they leave the group. further sends disallowed self.inputToolbar.hidden = YES; // user has requested they leave the group. further sends disallowed
@ -1194,7 +1195,8 @@ typedef enum : NSUInteger {
[self updateInputBarLayout]; [self updateInputBarLayout];
[self ensureScrollDownButton]; [self ensureScrollDownButton];
if ([self.thread isKindOfClass:TSGroupThread.class] && !((TSGroupThread *)self.thread).usesSharedSenderKeys) { if ([self.thread isKindOfClass:TSGroupThread.class] && !((TSGroupThread *)self.thread).isOpenGroup
&& !((TSGroupThread *)self.thread).usesSharedSenderKeys) {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Session" UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Session"
message:@"Legacy closed groups are no longer supported. Please create a new group to continue." preferredStyle:UIAlertControllerStyleAlert]; message:@"Legacy closed groups are no longer supported. Please create a new group to continue." preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]]; [alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];