Browse Source

Fixed edit messages with myself

Close #1321
master
Igor Zhukov 8 years ago
parent
commit
3086dad219
  1. 6
      app/js/messages_manager.js

6
app/js/messages_manager.js

@ -908,10 +908,14 @@ angular.module('myApp.services') @@ -908,10 +908,14 @@ angular.module('myApp.services')
var message = messagesStorage[messageID]
if (!message ||
!message.canBeEdited ||
!message.pFlags.out ||
message.date < tsNow(true) - 2 * 86400) {
return false
}
var peerID = getMessagePeer(message)
if (!message.pFlags.out &&
message.peerID != AppUsersManager.getSelf().id) {
return false
}
return true
}

Loading…
Cancel
Save