diff options
Diffstat (limited to 'lib')
-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 |