Guest User

Untitled

a guest
Jul 20th, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. proxy.messageReceived = function (data) {
  2. if (typeof (data) !== "object") data = eval('(' + data + ')');
  3. console.log("messageReceived!", data);
  4. if (data.result) {
  5. as.messages.showUnreadState();
  6.  
  7. var roomCont = $('.as-msg-room[data-itemID=' + data.roomID + ']');
  8. if (roomCont.length) {
  9. if (as.messages) {
  10. data.item.isMyMessage = false;
  11. as.messages._addMessage(roomCont, data.item, data.user);
  12. }
  13. }
  14. }
  15. };
RAW Paste Data