Add cancel in every case when showing the contextual menu

This commit is contained in:
ismailgulek
2022-06-13 18:26:57 +03:00
parent 8e5170685d
commit 283beb6429
+9 -10
View File
@@ -4109,17 +4109,16 @@ static CGSize kThreadListBarButtonItemImageSize;
[self showEncryptionInformation:selectedEvent];
}]];
}
[self.eventMenuBuilder addItemWithType:EventMenuItemTypeCancel
action:[UIAlertAction actionWithTitle:[VectorL10n cancel]
style:UIAlertActionStyleCancel
handler:^(UIAlertAction * action) {
MXStrongifyAndReturnIfNil(self);
[self hideContextualMenuAnimated:YES];
}]];
}
[self.eventMenuBuilder addItemWithType:EventMenuItemTypeCancel
action:[UIAlertAction actionWithTitle:[VectorL10n cancel]
style:UIAlertActionStyleCancel
handler:^(UIAlertAction * action) {
MXStrongifyAndReturnIfNil(self);
[self hideContextualMenuAnimated:YES];
}]];
// Do not display empty action sheet
if (!self.eventMenuBuilder.isEmpty)