Set lastmessage text on convo's with no timestamp
This commit is contained in:
@@ -209,7 +209,8 @@
|
||||
errors : []
|
||||
});
|
||||
|
||||
if (message.get('sent_at') > conversation.get('timestamp')) {
|
||||
var conversation_timestamp = conversation.get('timestamp');
|
||||
if (!conversation_timestamp || message.get('sent_at') > conversation_timestamp) {
|
||||
conversation.set({
|
||||
timestamp: message.get('sent_at'),
|
||||
lastMessage: message.get('body')
|
||||
|
Reference in New Issue
Block a user