Closed Bug 1780089 Opened 2 years ago Closed 2 years ago

Unable to send messages in encrypted rooms

Categories

(Chat Core :: Matrix, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102 fixed, thunderbird104 fixed, thunderbird105 fixed)

RESOLVED FIXED
105 Branch
Tracking Status
thunderbird_esr102 --- fixed
thunderbird104 --- fixed
thunderbird105 --- fixed

People

(Reporter: thivmcthiv, Assigned: freaktechnik)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

Send any message to an encrypted room.

Actual results:

the message fails to send, saying this in chat:
An error occurred while sending your message "xxxx".

and in the logs it says this:

Failed to send message to !xxxxx:matrix.org: This room contains unknown devices which have not been verified. We strongly recommend you verify them before continuing.
[7/18/22, 1:25:49 PM MDT] LOG (@ prpl-matrix: addEvent resource:///modules/matrix.jsm:897)

Expected results:

able to send messages to an encrypted room.

Some details from a conversation on Matrix with the reporter:

The e2ee settings say everything but the key backup is ok, and all sessions show as verified. Further this happens for all rooms and retrying to send the message does not work.

In theory we have the Matrix SDK set to always send messages in encrypted rooms when possible, but this seems like we're hitting some condition where the crypto part still doesn't like the smell of things. I wonder if this can only happen on beta (which is what this report is for) or also on release. Because we've updated the SDK a couple times on c-c, whereas release is on an older version of the SDK.

Assignee: nobody → martin
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

If you're encountering this in the wild, a workaround is to re-connect the Matrix account. This will in most cases properly run the initialization code which will allow you to send encrypted messages as expected.

I can confirm that this bug exists also in TB 102. Re-connecting the Matrix account does not appear to be a permanent solution for me (have tried in Windows 10, Fedora 35 Silverblue, Pop OS 22.04 and Debian 11). It seems to work but only that one time and then once Thunderbird is closed and re-opened the problem comes back. The change that you have proposed above (changing "then" to "finally" in the matrix.jsm file) permanently fixes this issue, however.

Version: Thunderbird 103 → Thunderbird 102
Target Milestone: --- → 105 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/97cc6e678974
Always trust unknown Matrix devices. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9288800 [details]
Bug 1780089 - Always trust unknown Matrix devices. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: Matrix encryption will sometimes error (without any path for the user to fix it, apart from trying to reconnect the account and hoping it works that time)
Testing completed (on c-c, etc.): Tested on c-c, positive feedback from users in bug
Risk to taking this patch (and alternatives if risky): Very low

Attachment #9288800 - Flags: approval-comm-beta?

Comment on attachment 9288800 [details]
Bug 1780089 - Always trust unknown Matrix devices. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta.

Attachment #9288800 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9288800 [details]
Bug 1780089 - Always trust unknown Matrix devices. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: Can sometimes not send messages in encrypted Matrix chats
Testing completed (on c-c, etc.): Tested on c-c, reports from community that it works in bug.
Risk to taking this patch (and alternatives if risky): Low, only makes sure we set a setting in the Matrix SDK in all circumstances.

Attachment #9288800 - Flags: approval-comm-esr102?

Comment on attachment 9288800 [details]
Bug 1780089 - Always trust unknown Matrix devices. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr102

Attachment #9288800 - Flags: approval-comm-esr102? → approval-comm-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: