Explorar o código

OTR Bugfix. Check the data parameter for confirmation.

JC Brand %!s(int64=11) %!d(string=hai) anos
pai
achega
e8af60e12b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(