From ee393bfa0360f4b7c7f92bf696f91ac2b0d573f3 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 16 Oct 2015 13:00:38 -0700 Subject: [PATCH] Ensure that tokens get updated on initial save // FREEBIE --- js/models/conversations.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/models/conversations.js b/js/models/conversations.js index 7464b2e7..1818e2c6 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -55,6 +55,10 @@ if (attributes.type !== 'private' && attributes.type !== 'group') { return "Invalid conversation type: " + attributes.type; } + + if (!attributes.tokens) { + this.updateTokens(); + } }, updateTokens: function() {