Skip to content

Commit

Permalink
Merge pull request #1628 from nextcloud/add-end-call-for-everyone-opt…
Browse files Browse the repository at this point in the history
…ion-in-one-to-one-conversations

Add "End call for everyone" option in 1-to-1 conversations
  • Loading branch information
SystemKeeper authored May 2, 2024
2 parents 7c05620 + 77d738e commit f113f4e
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 f113f4e

Please sign in to comment.