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')
} }
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
} }

Loading…
Cancel
Save