aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/event_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/event_context.cpp')
-rw-r--r--lib/csapi/event_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csapi/event_context.cpp b/lib/csapi/event_context.cpp
index 877838e2..4ebbbf98 100644
--- a/lib/csapi/event_context.cpp
+++ b/lib/csapi/event_context.cpp
@@ -20,7 +20,7 @@ QUrl GetEventContextJob::makeRequestUrl(QUrl baseUrl, const QString& roomId,
const QString& filter)
{
return BaseJob::makeRequestUrl(std::move(baseUrl),
- makePath("/_matrix/client/r0", "/rooms/",
+ makePath("/_matrix/client/v3", "/rooms/",
roomId, "/context/", eventId),
queryToGetEventContext(limit, filter));
}
@@ -30,7 +30,7 @@ GetEventContextJob::GetEventContextJob(const QString& roomId,
Omittable<int> limit,
const QString& filter)
: BaseJob(HttpVerb::Get, QStringLiteral("GetEventContextJob"),
- makePath("/_matrix/client/r0", "/rooms/", roomId, "/context/",
+ makePath("/_matrix/client/v3", "/rooms/", roomId, "/context/",
eventId),
queryToGetEventContext(limit, filter))
{}