Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give clients access to the room DAG #859

Open
jsparber opened this issue Jul 13, 2021 · 1 comment
Open

Give clients access to the room DAG #859

jsparber opened this issue Jul 13, 2021 · 1 comment
Labels
enhancement A suggestion for a relatively simple improvement to the protocol

Comments

@jsparber
Copy link

jsparber commented Jul 13, 2021

Would be nice if it were possible to keep the local copy of the room timeline in sync with the server. Currently there is no way to know when new events were inserted in the timeline (e.g. when a federated server syncs at a later point). New events are included in sync but the correct placement in the event graph is unknown.

@jsparber jsparber added the enhancement A suggestion for a relatively simple improvement to the protocol label Jul 13, 2021
@jsparber jsparber changed the title Allow to presistent timeline store Allow to store the timeline persistently Jul 13, 2021
@richvdh richvdh changed the title Allow to store the timeline persistently Give clients access to the room DAG Sep 20, 2021
@richvdh richvdh transferred this issue from matrix-org/matrix-spec-proposals Mar 2, 2022
@dkasak
Copy link
Member

dkasak commented Sep 6, 2022

@jsparber: Is "event_format": "federation" in filters what you want?

$ curl -d '{"event_format": "federation", "room": {"rooms": ["!GbZcxaXiuqXeGkhWQN:matrix.org"]}}' \
       -X POST "https://matrix-client.matrix.org/_matrix/client/v3/user/@dkasak_a:matrix.org/filter"
{"filter_id":"8"}

$ curl "https://matrix-client.matrix.org/_matrix/client/v3/sync?filter=8"

...

            {
              "auth_events": [
                "$kN_WAyr80wOIX5XiLjNQs-agOoAePjxFT90a49w1cQ0",
                "$Brmh-Z91ZQTAsLssg9BfP5PRJVRniQJCVvRJEdtpVQM",
                "$daBSHMf3srU1wJWjWwcXPjTNFUIO65j-Sc31aj0LElA"
              ],
              "content": {
                "body": "test",
                "msgtype": "m.text",
                "org.matrix.msc1767.text": "test"
              },
              "depth": 9,
              "hashes": {
                "sha256": "YxUiSgjJc+35qwqjWvCw94oROX0RmtyIaPX17eqqKaQ"
              },
              "origin": "matrix.org",
              "origin_server_ts": 1662480049004,
              "prev_events": [
                "$uV-G42JfjHrn0gYaCZaGvawYTYsJ0sBIFIUxLKsf9nU"
              ],
              "prev_state": [],
              "room_id": "!GbZcxaXiuqXeGkhWQN:matrix.org",
              "sender": "@dkasak_a:matrix.org",
              "type": "m.room.message",
              "signatures": {
                "matrix.org": {
                  "ed25519:a_RXGa": "YvmiQO/Ji9dxDNFem+CtCYdA910fHTyb5F9ehmfw3vGNmXiVL7FP6yOWGK/PQM7vCBTAFyEdtR9Zh2fMzdPYBQ"
                }
              },
              "unsigned": {
                "age": 324228,
                "transaction_id": "m1662480048867.2"
              },
              "event_id": "$5z2oYeg5UlSdtL3CPhuTaKrsQj-0A00ZE8vVXFBIOeQ"
            }

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A suggestion for a relatively simple improvement to the protocol
Projects
None yet
Development

No branches or pull requests

2 participants