From bfa04c0ab0eca5d812ad64e5f51e95ec458cf0d3 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 21 Jul 2016 10:00:09 -0400 Subject: PLT-2408 Adds here mention for online users (#3619) * Added @here mention that notifies online users * Fixed existing race condition that would sometime cause clients to miss mention count changes * Added missing localization strings * Prevent @here from mentioning the user who posted it --- webapp/utils/text_formatting.jsx | 1 + 1 file changed, 1 insertion(+) (limited to 'webapp/utils/text_formatting.jsx') diff --git a/webapp/utils/text_formatting.jsx b/webapp/utils/text_formatting.jsx index 5ada7727f..b304fa75a 100644 --- a/webapp/utils/text_formatting.jsx +++ b/webapp/utils/text_formatting.jsx @@ -207,6 +207,7 @@ function highlightCurrentMentions(text, tokens) { let output = text; const mentionKeys = UserStore.getCurrentMentionKeys(); + mentionKeys.push('@here'); // look for any existing tokens which are self mentions and should be highlighted var newTokens = new Map(); -- cgit v1.2.3-1-g7c22