Browse Source

Fixed delete messages in dialogs

master
Igor Zhukov 10 years ago
parent
commit
ba6171c800
  1. 1
      app/css/app.css
  2. 10
      app/js/services.js

1
app/css/app.css

@ -1224,6 +1224,7 @@ a.im_dialog_selected .im_dialog_date {
font-size: 13px; font-size: 13px;
margin-right: 20px; margin-right: 20px;
} }
.im_history_panel_media_dropdown,
.im_history_panel_return_count { .im_history_panel_return_count {
margin-left: 5px; margin-left: 5px;
} }

10
app/js/services.js

@ -2091,7 +2091,15 @@ angular.module('myApp.services', [])
delete messagesForDialogs[messageID]; delete messagesForDialogs[messageID];
} }
message.deleted = true; 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…
Cancel
Save