From fc28f6b460e2016e6efc051251bd428aa5003263 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Tue, 23 Jun 2020 14:25:13 +1000 Subject: [PATCH] Add a space after inserting a mention --- .../ConversationView/ConversationViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index 7a4a28361..03d476e31 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -3881,7 +3881,7 @@ typedef enum : NSUInteger { NSUInteger mentionStartIndex = (NSUInteger)self.currentMentionStartIndex; [self.mentions addObject:mentionCandidate]; NSString *oldText = self.inputToolbar.messageText; - NSString *newText = [oldText stringByReplacingCharactersInRange:NSMakeRange(mentionStartIndex, oldText.length - mentionStartIndex) withString:[NSString stringWithFormat:@"@%@", mentionCandidate.displayName]]; + NSString *newText = [oldText stringByReplacingCharactersInRange:NSMakeRange(mentionStartIndex, oldText.length - mentionStartIndex) withString:[NSString stringWithFormat:@"@%@ ", mentionCandidate.displayName]]; [self.inputToolbar setMessageText:newText animated:NO]; self.currentMentionStartIndex = -1; [self.inputToolbar hideMentionCandidateSelectionView];