Fixed edit messages with myself

Close #1321
This commit is contained in:
Igor Zhukov 2017-01-16 21:45:25 +03:00
parent bef95d7fed
commit 3086dad219

View File

@ -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
}