Browse Source

Fixed flags for messages sent to self

master
Igor Zhukov 10 years ago
parent
commit
e916244391
  1. 6
      app/js/services.js

6
app/js/services.js

@ -1359,7 +1359,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -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']) @@ -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']) @@ -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,

Loading…
Cancel
Save