Fix: Remove the “Quote” action from the menu of the selected message.

This commit is contained in:
Nicolas Mauri 2023-11-21 14:47:49 +01:00
parent d088e989cc
commit b2e25fa7e9
3 changed files with 1 additions and 21 deletions

View file

@ -25,7 +25,6 @@ enum EventMenuItemType: Int {
case cancelSending case cancelSending
case cancelDownloading case cancelDownloading
case saveMedia case saveMedia
case quote
case forward case forward
case permalink case permalink
case share case share

View file

@ -4056,26 +4056,6 @@ static CGSize kThreadListBarButtonItemImageSize;
[self cancelEventSelection]; [self cancelEventSelection];
}]]; }]];
} }
if (!isJitsiCallEvent && !selectedEvent.isTimelinePollEvent &&
selectedEvent.eventType != MXEventTypeBeaconInfo)
{
[self.eventMenuBuilder addItemWithType:EventMenuItemTypeQuote
action:[UIAlertAction actionWithTitle:[VectorL10n roomEventActionQuote]
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action) {
MXStrongifyAndReturnIfNil(self);
[self cancelEventSelection];
// Quote the message a la Markdown into the input toolbar composer
NSString *prefix = [self.inputToolbarView.textMessage length] ? [NSString stringWithFormat:@"%@\n", self.inputToolbarView.textMessage] : @"";
self.inputToolbarView.textMessage = [NSString stringWithFormat:@"%@>%@\n\n", prefix, selectedComponent.textMessage];
// And display the keyboard
[self.inputToolbarView becomeFirstResponder];
}]];
}
if (selectedEvent.sentState == MXEventSentStateSent && if (selectedEvent.sentState == MXEventSentStateSent &&
!selectedEvent.isTimelinePollEvent && !selectedEvent.isTimelinePollEvent &&

1
changelog.d/7691.bugfix Normal file
View file

@ -0,0 +1 @@
The "Quote" action has been removed from the menu of the selected message.