From 9a70adfe1b04a417ba296912a43055e7da163c3d Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Tue, 19 Apr 2016 22:38:38 +0300 Subject: [PATCH] Bugfixes --- app/js/lib/utils.js | 2 + app/js/messages_manager.js | 6 +-- app/js/services.js | 12 +++--- .../desktop/message_attach_venue.html | 10 ++--- app/partials/mobile/im.html | 2 +- app/partials/mobile/message.html | 42 +++++++------------ app/partials/mobile/message_attach_venue.html | 9 ++-- 7 files changed, 38 insertions(+), 45 deletions(-) diff --git a/app/js/lib/utils.js b/app/js/lib/utils.js index 6719426b..09b7a2a2 100644 --- a/app/js/lib/utils.js +++ b/app/js/lib/utils.js @@ -380,6 +380,8 @@ function templateUrl (tplName) { media_modal_layout: 'desktop', slider: 'desktop', reply_message: 'desktop', + message_body: 'desktop', + message_media: 'desktop', forwarded_messages: 'desktop', chat_invite_link_modal: 'desktop', reply_markup: 'desktop', diff --git a/app/js/messages_manager.js b/app/js/messages_manager.js index 68f72c3a..e6b94b29 100644 --- a/app/js/messages_manager.js +++ b/app/js/messages_manager.js @@ -1682,9 +1682,9 @@ angular.module('myApp.services') case 'inputMediaContact': media = { _: 'messageMediaContact', - phone_number: phone_number, - first_name: first_name, - last_name: last_name, + phone_number: inputMedia.phone_number, + first_name: inputMedia.first_name, + last_name: inputMedia.last_name, user_id: 0 }; break; diff --git a/app/js/services.js b/app/js/services.js index eb5831bf..c09c275d 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -2666,8 +2666,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) } else { var html = RichTextProcessor.wrapRichText(callbackAnswer.message, {noLinks: true, noLinebreaks: true}).valueOf();; toaster.pop({ - type: 'material', - timeout: 100000, + type: 'info', + // timeout: 100000, body: html, bodyOutputType: 'trustedHtml', showCloseButton: false @@ -2741,10 +2741,10 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) 'lat': inlineResult.send_message.geo['lat'], 'long': inlineResult.send_message.geo['long'] }, - title: title, - address: address, - provider: provider, - venue_id: venue_id + title: inlineResult.send_message.title, + address: inlineResult.send_message.address, + provider: inlineResult.send_message.provider, + venue_id: inlineResult.send_message.venue_id }; break; diff --git a/app/partials/desktop/message_attach_venue.html b/app/partials/desktop/message_attach_venue.html index 3f87569c..b0d8e9df 100644 --- a/app/partials/desktop/message_attach_venue.html +++ b/app/partials/desktop/message_attach_venue.html @@ -1,21 +1,21 @@
- + [{{::'conversation_media_location' | i18n}} {{::venue.mapUrl}}]
- +
-
+
diff --git a/app/partials/mobile/im.html b/app/partials/mobile/im.html index 64857559..84cfed55 100644 --- a/app/partials/mobile/im.html +++ b/app/partials/mobile/im.html @@ -194,4 +194,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/app/partials/mobile/message.html b/app/partials/mobile/message.html index ad5c2c15..3b2c059c 100644 --- a/app/partials/mobile/message.html +++ b/app/partials/mobile/message.html @@ -40,38 +40,28 @@ -
+
+
- - + + - + -
- - - - -
- -
- -
- -
-
-
-
-
-
-
-
-
- The message is not supported on your version of Telegram Web. Update the app to view: web.telegram.org. -
+
+ + + +
+
+
+
+ +
+
diff --git a/app/partials/mobile/message_attach_venue.html b/app/partials/mobile/message_attach_venue.html index a0657a32..b0d8e9df 100644 --- a/app/partials/mobile/message_attach_venue.html +++ b/app/partials/mobile/message_attach_venue.html @@ -1,20 +1,21 @@
- + [{{::'conversation_media_location' | i18n}} {{::media.mapUrl}}]
- +
-
+