Closed JeWe37 closed 9 months ago
It could be, I'm afraid I'm not quite sure how we trace missing room keys yet. I'll ask internally.
I saw this too today.
New e2e room Invite the hookshot user (it did not have encryption configured at that point) => didnt even try to handle the encrypted messages Enabled encryption settings and the experimental stuff for synapse => got the missing keys errors Removed the bot from the channel and invited back => started working
So maybe it gets the keys on room join but as the encryption settings were not active on the first join those were not handled?
That didn't work, I tried making entirely new encrypted rooms with encryption enabled. And even reset the bot entirely and started fresh with encryption on, but none of that helped in my case.
Do you have the experimental features enabled on the synapse server also? (And restarted synapse)
I was using the matrix-ansible playbook and when you activate the experimental encryption feature, the synapse homeserver.yaml
doesn't receive the required flags.
In this case it helps to extend the config manually and restart all services.
matrix_synapse_configuration_extension_yaml: |
experimental_features:
msc3202_device_masquerading: true
msc3202_transaction_extensions: true
msc2409_to_device_messages_enabled: true
I was using the matrix-ansible playbook and when you activate the experimental encryption feature, the synapse
homeserver.yaml
doesn't receive the required flags.In this case it helps to extend the config manually and restart all services.
matrix_synapse_configuration_extension_yaml: | experimental_features: msc3202_device_masquerading: true msc3202_transaction_extensions: true msc2409_to_device_messages_enabled: true
That ended up fixing it. I am admittedly not entirely sure how I missed this in the docs. Working perfectly now, thanks!
Might be worth informing the matrix-ansible maintainers, I'll send em a ping.
With the config.yml:
and registration.yml
the bot ignores any messages sent in encrypted rooms, while working find in unencrypted ones. In the logs I see:
This appears to be a bug. A similar behavior was reported by someone else in the matrix room as well, for them it started randomly working after resetting everything. Seeing as encryption is apparently experimental, it seems to me that this is a bug of some kind.