mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
Don't validate presence of thread id
It's undefined until the first save();
This commit is contained in:
@@ -15,7 +15,7 @@ var Whisper = Whisper || {};
|
||||
},
|
||||
|
||||
validate: function(attributes, options) {
|
||||
var required = ['id', 'type', 'timestamp', 'image', 'name'];
|
||||
var required = ['type', 'timestamp', 'image', 'name'];
|
||||
var missing = _.filter(required, function(attr) { return !attributes[attr]; });
|
||||
if (missing.length) { return "Thread must have " + missing; }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user