Bug 1427205 - Fix removing and shutting down Matrix accounts. r=nhnt11
authorPatrick Cloke <clokep@gmail.com>
Tue, 08 Oct 2019 10:17:31 -0400
changeset 37105 4e21ee135e9199761ae565612ba388b626a8df12
parent 37104 a094c4ec89ae01e6b71060ccbc7fae32e93145f6
child 37106 28aa4b22d12471f472f2448f522bcde5f882b26b
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersnhnt11
bugs1427205
Bug 1427205 - Fix removing and shutting down Matrix accounts. r=nhnt11
chat/protocols/matrix/matrix.js
--- a/chat/protocols/matrix/matrix.js
+++ b/chat/protocols/matrix/matrix.js
@@ -98,22 +98,18 @@ MatrixConversation.prototype = {
  *  setPresence
  */
 function MatrixAccount(aProtocol, aImAccount) {
   this._init(aProtocol, aImAccount);
 }
 MatrixAccount.prototype = {
   __proto__: GenericAccountPrototype,
   observe(aSubject, aTopic, aData) {},
-  remove() {
-    throw Cr.NS_ERROR_NOT_IMPLEMENTED;
-  },
-  unInit() {
-    throw Cr.NS_ERROR_NOT_IMPLEMENTED;
-  },
+  remove() {},
+  unInit() {},
   connect() {
     this.reportConnecting();
     let baseURL = this.getString("server") + ":" + this.getInt("port");
     let account = this;
     // We call MatrixSDK.createClient twice because loginWithPassword does not
     // properly set access token.
     // See https://github.com/matrix-org/matrix-js-sdk/issues/130
     MatrixSDK.createClient(baseURL)