-
Notifications
You must be signed in to change notification settings - Fork 29
Description
I was wondering why decrypting the location was so slow on some devices but I noticed each and every sent location event had a new megolm session instead of using the same one multiple times.
Even though Grid isn't a Matrix client I believe this inefficiency would affect its own use of Matrix as well and increases network and battery consumption and even disk usage because of the excess amount of keys generated and shared for all devices.
The Matrix spec has some suggested defaults how often a session should be rotated and the rooms don't seem to have any configured so either Grid defaults to 0 so it rotates it per every event sent or there's some other bug that causes it: https://spec.matrix.org/v1.3/client-server-api/#mroomencryption
EDIT: If it makes a difference this happens in a room that has non-Grid clients with a Grid client. I haven't verified this happens in Grid-only rooms.