From 8aaaa61bcdc0ff6277f0c0e57e8d9fbf70d00d27 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 7 Apr 2016 19:41:42 +0300 Subject: [PATCH] Fixed share modal Closes #1081 --- app/js/services.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/js/services.js b/app/js/services.js index 2fc1d32a..72fb4751 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -4277,11 +4277,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) } if (matches = url.match(/^msg_url\?url=([^&]+)(?:&text=(.*))?$/)) { - PeersSelectService.selectPeer().then(function (toPeerString) { - var url = decodeURIComponent(matches[1]); - var text = matches[2] ? decodeURIComponent(matches[2]) : ''; - shareUrl(url, text); - }); + var url = decodeURIComponent(matches[1]); + var text = matches[2] ? decodeURIComponent(matches[2]) : ''; + shareUrl(url, text); return true; }