Fixed delete messages in dialogs

This commit is contained in:
Igor Zhukov 2014-08-01 00:20:19 +01:00
parent b9af8fe025
commit ba6171c800
2 changed files with 10 additions and 1 deletions

View File

@ -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;
}

View File

@ -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
};
}
}