diff options
author | Ram Nad <ramnad1999@gmail.com> | 2020-03-21 17:18:40 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 17:18:40 +0530 |
commit | ed62c822ca200613bde60e48547ba32a0bd21c13 (patch) | |
tree | c418b9c716af2426bcc32c47244820e32d679a01 /lib/room.cpp | |
parent | a19c50d97c107f5048fa0ca6ff086050eb5eece1 (diff) | |
download | libquotient-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.cpp | 5 |
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 |