Browse Source

OTR Bugfix. Check the data parameter for confirmation.

JC Brand 11 năm trước cách đây
mục cha
commit
e8af60e12b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(