Bug 1622607 - fix protocol options in the chat account wizard are not getting saved in the account manager. r=clokep DONTBUILD
authorKhushil Mistry <khushil324@gmail.com>
Thu, 19 Mar 2020 12:59:13 +0200
changeset 38534 d5fd015190ad89a0873a6d18ee154f084859055c
parent 38533 3ac3b884565b018610d1a334c9b3eecd88176930
child 38535 fa2ff756eb23b0035587cfb49d416222c031bcf4
push id400
push userclokep@gmail.com
push dateMon, 04 May 2020 18:56:09 +0000
reviewersclokep
bugs1622607
Bug 1622607 - fix protocol options in the chat account wizard are not getting saved in the account manager. r=clokep DONTBUILD
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);
       }
     }