Page MenuHomePhorge

Amend room state when paginating back
ClosedPublic

Authored by tusooa on Jul 1 2024, 4:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 6, 7:19 AM
Unknown Object (File)
Tue, Sep 3, 8:10 PM
Unknown Object (File)
Tue, Sep 3, 8:10 PM
Unknown Object (File)
Mon, Sep 2, 10:33 PM
Unknown Object (File)
Mon, Sep 2, 3:38 PM
Unknown Object (File)
Fri, Aug 30, 7:53 PM
Unknown Object (File)
Tue, Aug 27, 12:01 AM
Unknown Object (File)
Sat, Aug 24, 4:56 AM
Subscribers
None

Details

Summary

When paginating back, there will be state events that are not yet fetched appearing in the timeline, and in the state property of the response. We add them to the local room state if it does not yet contain an event with the same type and state key.

Type: fix

BUG: https://iron.lily-is.land/T13

Test Plan

Verify that unit tests pass.

Diff Detail

Repository
rL libkazv
Lint
Lint Not Applicable
Unit
Tests Not Applicable