Browse Source

Fixed hashtags

Closes #1014
master
Igor Zhukov 8 years ago
parent
commit
5e0242816f
  1. 7
      app/js/controllers.js
  2. 2
      app/js/lib/ng_utils.js

7
app/js/controllers.js

@ -804,6 +804,13 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -804,6 +804,13 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.$on('ui_dialogs_search_clear', $scope.searchClear);
if (!$scope.noMessages) {
$scope.$on('dialogs_search', function (e, data) {
$scope.search.query = data.query || '';
$scope.toggleSearch();
});
}
var searchTimeoutPromise;
function getDialogs(force) {
var curJump = ++jump;

2
app/js/lib/ng_utils.js

@ -1181,7 +1181,7 @@ angular.module('izhukov.utils', []) @@ -1181,7 +1181,7 @@ angular.module('izhukov.utils', [])
var markdownRegExp = /(^|\s)(````?)([\s\S]+?)(````?)([\s\.,:?!;]|$)|(^|\s)`([^\n]+?)`([\s\.,:?!;]|$)/;
var siteHashtags = {
Telegram: '#/im?q=%23{1}',
Telegram: 'tg://search_hashtag?hashtag={1}',
Twitter: 'https://twitter.com/hashtag/{1}',
Instagram: 'https://instagram.com/explore/tags/{1}/',
'Google Plus': 'https://plus.google.com/explore/{1}'

Loading…
Cancel
Save