diff --git a/Riot/Modules/Room/RoomViewController.m b/Riot/Modules/Room/RoomViewController.m index 8778b6a88c..20d24daa96 100644 --- a/Riot/Modules/Room/RoomViewController.m +++ b/Riot/Modules/Room/RoomViewController.m @@ -3687,9 +3687,10 @@ - (void)showAdditionalActionsMenuForEvent:(MXEvent*)selectedEvent inCell:(id%@\n\n", self.inputToolbarView.textMessage, selectedComponent.textMessage]; + 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]; diff --git a/Riot/Modules/Room/Views/InputToolbar/RoomInputToolbarView.m b/Riot/Modules/Room/Views/InputToolbar/RoomInputToolbarView.m index 0259645e70..106fa3bb3a 100644 --- a/Riot/Modules/Room/Views/InputToolbar/RoomInputToolbarView.m +++ b/Riot/Modules/Room/Views/InputToolbar/RoomInputToolbarView.m @@ -159,10 +159,7 @@ -(void)customizeViewRendering - (void)setTextMessage:(NSString *)textMessage { - if (!textMessage) - { - [self setAttributedTextMessage:nil]; - } + [self setAttributedTextMessage:textMessage ? [[NSAttributedString alloc] initWithString:textMessage] : nil]; } - (void)setAttributedTextMessage:(NSAttributedString *)attributedTextMessage diff --git a/changelog.d/pr-6328.bugfix b/changelog.d/pr-6328.bugfix new file mode 100644 index 0000000000..4528c9d90a --- /dev/null +++ b/changelog.d/pr-6328.bugfix @@ -0,0 +1 @@ +Make quoting context menu action work again