Skip to content

Bug: Grids creates new megolm session per each sent location #138

@hifi

Description

@hifi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions