aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorRam Nad <ramnad1999@gmail.com>2020-03-21 17:18:40 +0530
committerGitHub <noreply@github.com>2020-03-21 17:18:40 +0530
commited62c822ca200613bde60e48547ba32a0bd21c13 (patch)
treec418b9c716af2426bcc32c47244820e32d679a01 /lib/room.cpp
parenta19c50d97c107f5048fa0ca6ff086050eb5eece1 (diff)
downloadlibquotient-ed62c822ca200613bde60e48547ba32a0bd21c13.tar.gz
libquotient-ed62c822ca200613bde60e48547ba32a0bd21c13.zip
Update aliases code lib/room.cpp
Co-Authored-By: Kitsune Ral <Kitsune-Ral@users.sf.net>
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 5f96a5f9..403c024b 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -433,9 +433,8 @@ QString Room::name() const
QStringList Room::aliases() const
{
- QStringList result(d->getCurrentState<RoomCanonicalAliasEvent>()->alias());
- result += d->getCurrentState<RoomCanonicalAliasEvent>()->altAliases();
- return result;
+ const auto* evt = d->getCurrentState<RoomCanonicalAliasEvent>();
+ return QStringList(evt->altAliases()) << evt->alias();
}
QStringList Room::altAliases() const