diff options
author | Black Hat <bhat@encom.eu.org> | 2019-10-02 01:23:03 -0700 |
---|---|---|
committer | Black Hat <bhat@encom.eu.org> | 2019-10-02 01:23:03 -0700 |
commit | c201f8a50d155707aabb83850c17a74dd4d571d3 (patch) | |
tree | b7fb368cf4ef7f01158db74aa93e5d39e173403e /lib/room.cpp | |
parent | 4623632e14ee9367e5728daf745d5323eb6a51d5 (diff) | |
download | libquotient-c201f8a50d155707aabb83850c17a74dd4d571d3.tar.gz libquotient-c201f8a50d155707aabb83850c17a74dd4d571d3.zip |
Fix Room::localAliases()
When homeserver's csapi is in a subdomain, e.g. matrix.example.org, the
authority of api endpoint url differs from server name, example.org.
This causes Room::localAliases() to fail.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index aae84416..c4cdac04 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -413,7 +413,7 @@ QStringList Room::localAliases() const { return d ->getCurrentState<RoomAliasesEvent>( - connection()->homeserver().authority()) + connection()->domain()) ->aliases(); } |