Ensure that tokens get updated on initial save

// FREEBIE
This commit is contained in:
lilia 2015-10-16 13:00:38 -07:00
parent 2f8d973366
commit ee393bfa03

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() {