Bug 1622607 - fix protocol options in the chat account wizard are not getting saved in the account manager. r=clokep a=wsmwk
authorKhushil Mistry <khushil324@gmail.com>
Thu, 19 Mar 2020 12:59:13 +0200
changeset 37555 9e5d4c565ea0451f5a20006b386f3558448e7df0
parent 37554 c46c32f10db06e9528bb2f38035c506c700e93f7
child 37556 e75b83b80792df1a5326e0ba8927e91cf2fed75a
push id2574
push userthunderbird@calypsoblue.org
push dateWed, 25 Mar 2020 16:02:28 +0000
treeherdercomm-beta@e75b83b80792 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep, wsmwk
bugs1622607
Bug 1622607 - fix protocol options in the chat account wizard are not getting saved in the account manager. r=clokep a=wsmwk
mail/components/im/content/imAccountWizard.js
--- a/mail/components/im/content/imAccountWizard.js
+++ b/mail/components/im/content/imAccountWizard.js
@@ -308,32 +308,32 @@ var accountWizard = {
       let name = opt.name;
       let eltName = id + "-" + name;
       let val = this.getValue(eltName);
       // The value will be undefined if the proto specific groupbox has never been opened
       if (val === undefined) {
         continue;
       }
       switch (opt.type) {
-        case opt.typeBool:
+        case Ci.prplIPref.typeBool:
           if (val != opt.getBool()) {
             this.prefs.push({ opt, name, value: !!val });
           }
           break;
-        case opt.typeInt:
+        case Ci.prplIPref.typeInt:
           if (val != opt.getInt()) {
             this.prefs.push({ opt, name, value: val });
           }
           break;
-        case opt.typeString:
+        case Ci.prplIPref.typeString:
           if (val != opt.getString()) {
             this.prefs.push({ opt, name, value: val });
           }
           break;
-        case opt.typeList:
+        case Ci.prplIPref.typeList:
           if (val != opt.getListDefault()) {
             this.prefs.push({ opt, name, value: val });
           }
           break;
         default:
           throw new Error("unknown preference type " + opt.type);
       }
     }