Fixed delete messages in dialogs
This commit is contained in:
parent
b9af8fe025
commit
ba6171c800
@ -1224,6 +1224,7 @@ a.im_dialog_selected .im_dialog_date {
|
||||
font-size: 13px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
.im_history_panel_media_dropdown,
|
||||
.im_history_panel_return_count {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
@ -2091,7 +2091,15 @@ angular.module('myApp.services', [])
|
||||
delete messagesForDialogs[messageID];
|
||||
}
|
||||
message.deleted = true;
|
||||
delete messagesStorage[messageID];
|
||||
messagesStorage[messageID] = {
|
||||
deleted: true,
|
||||
id: messageID,
|
||||
from_id: message.from_id,
|
||||
to_id: message.to_id,
|
||||
out: message.out,
|
||||
unread: message.unread,
|
||||
date: message.date
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user