Bug 955417 - Fix breakage in Join Chat dialog from typo, r=florian.
authorPatrick Cloke <clokep@gmail.com>
Mon, 14 Oct 2013 18:10:03 -0400
changeset 17301 ab630c829a4b942a61569c98ce6975f2eedad5c6
parent 17300 a6bef6c9556acce7610e2231dfafb4823a23c54f
child 17302 32e1b6cb06c48319b38ee21bf5c373fefca39935
push id1151
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:50:32 +0000
treeherdercomm-aurora@267d8e9143d5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs955417
Bug 955417 - Fix breakage in Join Chat dialog from typo, r=florian.
im/content/joinchat.js
--- a/im/content/joinchat.js
+++ b/im/content/joinchat.js
@@ -125,27 +125,27 @@ var joinChat = {
       else if (protoId != "prpl-irc")
         name += "/" + values.getValue("handle");
 
       let prefBranch =
         Services.prefs.getBranch("messenger.account." + account.id + ".");
       let autojoin = [];
       if (prefBranch.prefHasUserValue(autoJoinPref)) {
         let prefValue =
-          prefBranch.getComplexPref(autoJoinPref, Ci.nsISupportsString).data;
+          prefBranch.getComplexValue(autoJoinPref, Ci.nsISupportsString).data;
         if (prefValue)
           autojoin = prefValue.split(",");
       }
 
       if (autojoin.indexOf(name) == -1) {
         autojoin.push(name);
         let str = Cc["@mozilla.org/supports-string;1"]
                     .createInstance(Ci.nsISupportsString);
         str.data = autojoin.join(",");
-        prefBranch.setComplexPref(autoJoinPref, Ci.nsISupportsString, str);
+        prefBranch.setComplexValue(autoJoinPref, Ci.nsISupportsString, str);
       }
     }
 
     return true;
   },
 
   getAccounts: function jc_getAccounts() getIter(Services.accounts.getAccounts())
 };