automatically add space after mention

pull/507/head
ryanzhao 4 years ago
parent dcd3997a78
commit bf2725183d

@ -353,7 +353,7 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc
guard let currentMentionStartIndex = currentMentionStartIndex else { return }
mentions.append(mention)
let oldText = snInputView.text
let newText = oldText.replacingCharacters(in: currentMentionStartIndex..., with: "@\(mention.displayName)")
let newText = oldText.replacingCharacters(in: currentMentionStartIndex..., with: "@\(mention.displayName) ")
snInputView.text = newText
self.currentMentionStartIndex = nil
snInputView.hideMentionsUI()

Loading…
Cancel
Save