From 9ad25f204fa6caadf93203c42f3ea7de17dceab0 Mon Sep 17 00:00:00 2001 From: Kitsune Ral <Kitsune-Ral@users.sf.net> Date: Sat, 6 Jul 2019 12:35:45 +0900 Subject: Room::setLocalAliases: now actually working (with a caveat) The caveat is that the library doesn't support .well-known yet, therefore will work not fully correctly (in particular - won't correctly set aliases) with servers that have serverpart different from the homeserver hostname used to connect to it. --- lib/room.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/room.cpp b/lib/room.cpp index 06f3490c..c5367047 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -1640,7 +1640,8 @@ void Room::setCanonicalAlias(const QString& newAlias) void Room::setLocalAliases(const QStringList& aliases) { - d->requestSetState(RoomAliasesEvent(aliases)); + d->requestSetState(connection()->homeserver().authority(), + RoomAliasesEvent(aliases)); } void Room::setTopic(const QString& newTopic) -- cgit v1.2.3