Fix new conversation with no lastMessage
This commit is contained in:
parent
5b430fa8aa
commit
89f5f216ed
1 changed files with 5 additions and 0 deletions
|
@ -217,6 +217,11 @@
|
|||
lastMessage: message.get('body')
|
||||
});
|
||||
}
|
||||
else if (!conversation.get('lastMessage')) {
|
||||
conversation.set({
|
||||
lastMessage: message.get('body')
|
||||
});
|
||||
}
|
||||
|
||||
conversation.save().then(function() {
|
||||
message.save().then(function() {
|
||||
|
|
Loading…
Reference in a new issue