Fix getEventForTimestamp API path (???)

This commit is contained in:
Cadence Ember 2023-11-25 22:56:11 +13:00
parent 57d5cfb480
commit 4313aa668d

View file

@ -90,7 +90,7 @@ async function getEvent(roomID, eventID) {
*/ */
async function getEventForTimestamp(roomID, ts) { async function getEventForTimestamp(roomID, ts) {
/** @type {{event_id: string, origin_server_ts: number}} */ /** @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 return root
} }