Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deserializing encrypted edits. Fixes mautrix/telegram#623
Replacing the top-level content with the new content happens in the deserialization stage, but inserting `m.relates_to` was only happening after deserializing. This commit moves copying `m.relates_to` to before the deserialization so that edit fallbacks are removed appropriately.
- Loading branch information