From c64fe8410e7c4e89d80f5945a4b17b0c5aff5971 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 2 Nov 2015 16:46:52 -0800 Subject: [PATCH] Convo list shows 'Media message' when appropriate // FREEBIE --- js/models/conversations.js | 2 +- js/models/messages.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index 1818e2c6..90f32524 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -104,7 +104,7 @@ unreadCount : 0, active_at : now, timestamp : now, - lastMessage : body + lastMessage : message.getNotificationText() }); var sendFunc; diff --git a/js/models/messages.js b/js/models/messages.js index 06d00d24..66e333ab 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -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() }); }