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