Convo list shows 'Media message' when appropriate

// FREEBIE
This commit is contained in:
lilia 2015-11-02 16:46:52 -08:00
parent 503509fc8f
commit c64fe8410e
2 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@
unreadCount : 0,
active_at : now,
timestamp : now,
lastMessage : body
lastMessage : message.getNotificationText()
});
var sendFunc;

View file

@ -307,12 +307,12 @@
if (!conversation_timestamp || message.get('sent_at') > conversation_timestamp) {
conversation.set({
timestamp: message.get('sent_at'),
lastMessage: message.getDescription()
lastMessage: message.getNotificationText()
});
}
else if (!conversation.get('lastMessage')) {
conversation.set({
lastMessage: message.getDescription()
lastMessage: message.getNotificationText()
});
}