Browse Source

Allow edit cloud storage old messages

Closes #1424
master
Igor Zhukov 8 years ago
parent
commit
60ac9a942e
  1. 12
      app/js/messages_manager.js

12
app/js/messages_manager.js

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

Loading…
Cancel
Save