mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #6328 from vector-im/johannes/quoting
Make quoting context menu action work again
This commit is contained in:
commit
03d37b5923
3 changed files with 5 additions and 6 deletions
|
@ -3708,9 +3708,10 @@ static CGSize kThreadListBarButtonItemImageSize;
|
|||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
[self cancelEventSelection];
|
||||
|
||||
|
||||
// Quote the message a la Markdown into the input toolbar composer
|
||||
self.inputToolbarView.textMessage = [NSString stringWithFormat:@"%@\n>%@\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];
|
||||
|
|
|
@ -159,10 +159,7 @@ static const NSTimeInterval kActionMenuComposerHeightAnimationDuration = .3;
|
|||
|
||||
- (void)setTextMessage:(NSString *)textMessage
|
||||
{
|
||||
if (!textMessage)
|
||||
{
|
||||
[self setAttributedTextMessage:nil];
|
||||
}
|
||||
[self setAttributedTextMessage:textMessage ? [[NSAttributedString alloc] initWithString:textMessage] : nil];
|
||||
}
|
||||
|
||||
- (void)setAttributedTextMessage:(NSAttributedString *)attributedTextMessage
|
||||
|
|
1
changelog.d/pr-6328.bugfix
Normal file
1
changelog.d/pr-6328.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Make quoting context menu action work again
|
Loading…
Reference in a new issue