Ensure that tokens get updated on initial save

// FREEBIE
pull/749/head
lilia 10 years ago
parent 2f8d973366
commit ee393bfa03

@ -55,6 +55,10 @@
if (attributes.type !== 'private' && attributes.type !== 'group') {
return "Invalid conversation type: " + attributes.type;
}
if (!attributes.tokens) {
this.updateTokens();
}
},
updateTokens: function() {

Loading…
Cancel
Save