From f2ce971d0b295b5c9b532c6fcf20a24294430ab9 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 13 Feb 2015 19:03:26 +0300 Subject: [PATCH] Correctly display single fwd sticker --- app/js/services.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/js/services.js b/app/js/services.js index acfe68fb..f176ba28 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -1967,6 +1967,15 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) } } + if (curMessage.fwd_from_id && + curMessage.media && + curMessage.media.document && + curMessage.media.document.sticker && + (curMessage.from_id != (prevMessage || {}).from_id || !(prevMessage || {}).fwd_from_id)) { + delete curMessage.fwd_from_id; + curMessage._ = 'message'; + } + if (prevMessage && curMessage.from_id == prevMessage.from_id && !prevMessage.fwd_from_id == !curMessage.fwd_from_id &&