From 4313aa668dc2a99188e73c618ec3987b15947652 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sat, 25 Nov 2023 22:56:11 +1300 Subject: [PATCH] Fix getEventForTimestamp API path (???) --- matrix/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/api.js b/matrix/api.js index bbcb864..b59d6ef 100644 --- a/matrix/api.js +++ b/matrix/api.js @@ -90,7 +90,7 @@ async function getEvent(roomID, eventID) { */ async function getEventForTimestamp(roomID, ts) { /** @type {{event_id: string, origin_server_ts: number}} */ - const root = await mreq.mreq("GET", path(`/client/v3/rooms/${roomID}/timestamp_to_event`, null, {ts})) + const root = await mreq.mreq("GET", path(`/client/v1/rooms/${roomID}/timestamp_to_event`, null, {ts})) return root }