Closed Bug 1427205 Opened 6 years ago Closed 5 years ago

Can't Remove Matrix Accounts

Categories

(Chat Core :: Matrix, defect)

defect
Not set
normal

Tracking

(thunderbird_esr6870+ fixed, thunderbird71 fixed)

RESOLVED FIXED
Instantbird 71
Tracking Status
thunderbird_esr68 70+ fixed
thunderbird71 --- fixed

People

(Reporter: ryan, Assigned: clokep)

References

Details

Attachments

(2 files)

At one point I tried adding a Matrix account and (because of issues I had ended up trying to add it three different ways). But I'm having an issue removing these accounts now.

I can remove them from the list of chat accounts but upon restarting TB they are all back.
Flags: needinfo?(florian)
Flags: needinfo?(clokep)
Flags: needinfo?(acelists)
Yes, this is a bug. Someone needs to track down what's happening.

I suspect an error is being thrown somewhere (error console?) that has what the issue is.
Flags: needinfo?(florian)
Flags: needinfo?(clokep)
Flags: needinfo?(acelists)
Hey Patrick, can you walk me through how to track down this error in the console so I can report it here?

Oops, I apparently never got around to this. I think it was mentioned in a few other places, but we need to integrate the new Matrix JS package before working on this more.

(In reply to Ryan Sipes from comment #2)

Hey Patrick, can you walk me through how to track down this error in the
console so I can report it here?

To answer your question though, there are two places to check:

  1. Click "Show Accounts" when on the "Chat" tab.
  2. Right click on the account in question.
  3. Click "Copy Debug Log". The debug log has a bunch of technical information that might have been logged by the protocol code. Some of it could be sensitive.
  4. Alternately, you can look in the error console, accessible via the menus: "Tools" > "Developer Tools" > "Error Console"
  5. It is best to click "Clear" (the little trash can icon on the top left) and then perform whatever you expect to work to see if any NEW errors pop up.

This needs to be moved to the Matrix component (and perhaps bugs 1498978 and 1315926 as well?)

Component: Instant Messaging → Matrix
Product: Thunderbird → Chat Core
Type: enhancement → defect
Blocks: 1572636
Attached patch PatchSplinter Review
Assignee: nobody → clokep
Status: NEW → ASSIGNED
Attachment #9099573 - Flags: review?(florian)

I should probably state that this changes the Matrix code to not through an error...but it also doesn't properly clean-up after itself. I think that's an improvement for now. It'll at least work properly to delete the account now.

Comment on attachment 9099573 [details] [diff] [review]
Patch

Review of attachment 9099573 [details] [diff] [review]:
-----------------------------------------------------------------

r+ based on comment 6.

::: chat/protocols/matrix/matrix.js
@@ +102,5 @@
>  }
>  MatrixAccount.prototype = {
>    __proto__: GenericAccountPrototype,
>    observe(aSubject, aTopic, aData) {},
> +  remove() {},

Maybe add a couple of TODO comments here saying that this needs to be extended at some point?
Attachment #9099573 - Flags: review?(florian) → review+

Pushed by clokep@gmail.com:
https://hg.mozilla.org/comm-central/rev/4e21ee135e91
Fix removing and shutting down Matrix accounts. r=nhnt11

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Instantbird 71
Comment on attachment 9099573 [details] [diff] [review]
Patch

[Approval Request Comment]
Regression caused by (bug #): N/A
User impact if declined: Users are not able to remove a Matrix account (which they can only create by messing with preferences).
Testing completed (on c-c, etc.): This has been on c-c for a bit.
Risk to taking this patch (and alternatives if risky): Matrix is not enabled by default, so I don't think there's much risk to taking this patch.
Attachment #9099573 - Flags: approval-comm-esr68?
Comment on attachment 9099573 [details] [diff] [review]
Patch

Sure, thanks.
Attachment #9099573 - Flags: approval-comm-esr68? → approval-comm-esr68+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: