浏览代码

OTR Bugfix. Check the data parameter for confirmation.

JC Brand 11 年之前
父节点
当前提交
e8af60e12b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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(