From b27826cba5778f9d3174df4184b332b0ea06d950 Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 8 Feb 2015 08:43:27 -1000 Subject: [PATCH] Conversations must have an id before saving --- js/models/conversations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index a7c7039ee..1fcf3398e 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -37,7 +37,7 @@ }, validate: function(attributes, options) { - var required = ['type', 'timestamp']; + var required = ['id', 'type', 'timestamp']; var missing = _.filter(required, function(attr) { return !attributes[attr]; }); if (missing.length) { return "Conversation must have " + missing; }