Browse Source

OTR Bugfix. Check the data parameter for confirmation.

JC Brand 11 years ago
parent
commit
e8af60e12b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -506,7 +506,7 @@
                             [this.get('fullname'), data])));
                         break;
                     case 'trust':
-                        if (this.otr.trust === true) {
+                        if (data === true) {
                             this.save({'otr_status': VERIFIED});
                         } else {
                             this.trigger(