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