Set lastmessage text on convo's with no timestamp
This commit is contained in:
parent
17e515f886
commit
fd5b0aeb85
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue