From efbe340c0939de8f3e5bac178a1c3111d2d9e04b Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 4 Jul 2016 16:56:17 +0300 Subject: [PATCH] Fixed mention without username --- app/js/lib/ng_utils.js | 4 +--- app/js/messages_manager.js | 13 +++++++------ app/js/services.js | 3 +++ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index b60ba817..86857dc8 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1433,7 +1433,6 @@ angular.module('izhukov.utils', []) }) rawOffset -= 2 } else if (match[10]) { // custom mention - console.log(match); newText.push(text) entities.push({ _: 'messageEntityMentionName', @@ -1597,11 +1596,10 @@ angular.module('izhukov.utils', []) break case 'messageEntityMentionName': - if (!options.noLinks) { + if (options.noLinks) { skipEntity = true break } - var username = entityText.substr(1) html.push( '