Skip to content

Commit

Permalink
Add "End call for everyone" option in 1-to-1 conversations.
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sein <[email protected]>
  • Loading branch information
Ivansss committed Apr 19, 2024
1 parent ec4d331 commit 77d738e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NextcloudTalk/CallViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,8 @@ - (void)adjustTopBar

[self adjustMoreButtonMenu];

if ([self->_room canModerate] && [[NCDatabaseManager sharedInstance] serverHasTalkCapability:kCapabilityPublishingPermissions]) {
if (([self->_room canModerate] || self->_room.type == kNCRoomTypeOneToOne) &&
[[NCDatabaseManager sharedInstance] serverHasTalkCapability:kCapabilityPublishingPermissions]) {
__weak typeof(self) weakSelf = self;
UIAction *hangupForAllAction = [UIAction actionWithTitle:NSLocalizedString(@"End call for everyone", @"") image:[UIImage systemImageNamed:@"phone.down.fill"] identifier:nil handler:^(UIAction *action) {
[weakSelf hangupForAll:YES];
Expand Down

0 comments on commit 77d738e

Please sign in to comment.