Fixed empty message in conversation

This commit is contained in:
Igor Zhukov 2017-07-02 15:57:26 +03:00
parent 1c9e6fe42a
commit bfd3336485

View File

@ -138,6 +138,9 @@ angular.module('myApp.services')
var isMegagroup = AppPeersManager.isMegagroup(channelID)
var mid = AppMessagesIDsManager.getFullMessageID(dialog.top_message, channelID)
var message = getMessage(mid)
if (message.deleted) {
console.warn(dT(), 'Deleted message in coversaion', dialog, message, mid)
}
var offsetDate = message.date
if (!channelID && peerID < 0) {
@ -911,7 +914,11 @@ angular.module('myApp.services')
}
function getMessage (messageID) {
return messagesStorage[messageID] || {deleted: true}
return messagesStorage[messageID] || {
_: 'messageEmpty',
deleted: true,
pFlags: {out: false, unread: false}
}
}
function canMessageBeEdited(message) {