Ensure that expired messages are removed from the frontend

This commit is contained in:
lilia 2016-09-21 16:26:42 -07:00
parent 02ea4f2475
commit 1383dc141f
4 changed files with 24 additions and 3 deletions

View file

@ -76,6 +76,9 @@
get: function(id) {
return conversations.get(id);
},
add: function(attrs) {
return conversations.add(attrs, {merge: true});
},
create: function(attrs) {
if (typeof attrs !== 'object') {
throw new Error('ConversationController.create requires an object, got', attrs);