parent
bef95d7fed
commit
3086dad219
@ -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…
Reference in New Issue
Block a user