mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Create requires an object
// FREEBIE
This commit is contained in:
@@ -46,6 +46,9 @@
|
||||
return conversations.get(id);
|
||||
},
|
||||
create: function(attrs) {
|
||||
if (typeof attrs !== 'object') {
|
||||
throw new Error('ConversationController.create requires an object, got', attrs);
|
||||
}
|
||||
var conversation = conversations.add(attrs);
|
||||
return conversation;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user