From e916244391fbfec47a5c6c39e64bd7e1bbe16692 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 12 Feb 2015 22:40:00 +0300 Subject: [PATCH] Fixed flags for messages sent to self --- app/js/services.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/js/services.js b/app/js/services.js index e2661c40..eaa3f231 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -1359,7 +1359,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) id: messageID, from_id: fromID, to_id: AppPeersManager.getOutputPeer(peerID), - flags: 3, + flags: peerID == fromID ? 0 : 3, date: tsNow(true) + serverTimeOffset, message: text, random_id: randomIDS, @@ -1478,7 +1478,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) id: messageID, from_id: fromID, to_id: AppPeersManager.getOutputPeer(peerID), - flags: 3, + flags: peerID == fromID ? 0 : 3, date: tsNow(true) + serverTimeOffset, message: '', media: media, @@ -1632,7 +1632,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) id: messageID, from_id: fromID, to_id: AppPeersManager.getOutputPeer(peerID), - flags: 3, + flags: peerID == fromID ? 0 : 3, date: tsNow(true) + serverTimeOffset, message: '', media: media,