Ensure that tokens get updated on initial save
// FREEBIE
This commit is contained in:
parent
2f8d973366
commit
ee393bfa03
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@
|
||||||
if (attributes.type !== 'private' && attributes.type !== 'group') {
|
if (attributes.type !== 'private' && attributes.type !== 'group') {
|
||||||
return "Invalid conversation type: " + attributes.type;
|
return "Invalid conversation type: " + attributes.type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!attributes.tokens) {
|
||||||
|
this.updateTokens();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
updateTokens: function() {
|
updateTokens: function() {
|
||||||
|
|
Loading…
Reference in a new issue