瀏覽代碼

Bugfix. Make sure to remove 'requesting' attr again.

JC Brand 11 年之前
父節點
當前提交
5944ed99e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -2668,7 +2668,7 @@
                         } else if (model.get('subscription') !== item.subscription || model.get('ask') !== item.ask) {
                         } else if (model.get('subscription') !== item.subscription || model.get('ask') !== item.ask) {
                             // only modify model attributes if they are different from the
                             // only modify model attributes if they are different from the
                             // ones that were already set when the rosterItem was added
                             // ones that were already set when the rosterItem was added
-                            model.set({'subscription': item.subscription, 'ask': item.ask});
+                            model.set({'subscription': item.subscription, 'ask': item.ask, 'requesting': null});
                             model.save();
                             model.save();
                         }
                         }
                     }
                     }