Fix getEventForTimestamp API path (???)

This commit is contained in:
Cadence Ember 2023-11-25 22:56:11 +13:00
parent 57d5cfb480
commit 4313aa668d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}