Fixed deleted message reply
This commit is contained in:
parent
060d735ac4
commit
05c18f077f
@ -356,6 +356,10 @@ angular.module('myApp.directives', ['myApp.filters'])
|
||||
|
||||
function updateMessage($scope, element) {
|
||||
var message = $scope.replyMessage;
|
||||
if (!message || message.deleted || !message.to_id) {
|
||||
$(element).remove();
|
||||
return;
|
||||
}
|
||||
var thumbWidth = 42;
|
||||
var thumbHeight = 42;
|
||||
var thumbPhotoSize;
|
||||
|
@ -1943,7 +1943,11 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
||||
return messagesForDialogs[msgID];
|
||||
}
|
||||
|
||||
var message = angular.copy(messagesStorage[msgID]) || {id: msgID};
|
||||
var message = angular.copy(messagesStorage[msgID]);
|
||||
|
||||
if (!message || !message.to_id) {
|
||||
return message;
|
||||
}
|
||||
|
||||
if (message.chatID = message.to_id.chat_id) {
|
||||
message.peerID = -message.chatID;
|
||||
|
Loading…
Reference in New Issue
Block a user