Ensure that tokens get updated on initial save

// FREEBIE
This commit is contained in:
lilia
2015-10-16 13:01:14 -07:00
parent 2f8d973366
commit ee393bfa03
+4
View File
@@ -55,6 +55,10 @@
if (attributes.type !== 'private' && attributes.type !== 'group') {
return "Invalid conversation type: " + attributes.type;
}
if (!attributes.tokens) {
this.updateTokens();
}
},
updateTokens: function() {