krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
887 stars 147 forks source link

Fluffychat may fail to encrypt for all devices in a room #1142

Open kegsay opened 4 weeks ago

kegsay commented 4 weeks ago

Bug Description

I've been debugging why one Element X user cannot decrypt a message. Logs suggest that the to-device message containing the new room key was never received. This could be because:

Unfortunately, I cannot verify either of these. The sender was on FluffyChat. Is there any way I can rule out FluffyChat as a cause? Element clients tag to-device messages with an extra key under content called org.matrix.msgid which can then be logged server-side, enabling the message to be traced across multiple services. If FluffyChat did the same, and also provided some way to expose the logs client-side for debugging, then it would be possible to see if the client did send the room key and if the server got it / delivered it.

Steps to Reproduce

Send a message in an encrypted room.

Expected Behavior

Messages should be decryptable by the receiver.

App Version

1.20.0

Additional Platform Information

Unknown

Additional Context

No response