aboutsummaryrefslogtreecommitdiff
path: root/lib/events/simplestateevents.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/simplestateevents.h')
-rw-r--r--lib/events/simplestateevents.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/events/simplestateevents.h b/lib/events/simplestateevents.h
index 46e1b3a7..a8eaab56 100644
--- a/lib/events/simplestateevents.h
+++ b/lib/events/simplestateevents.h
@@ -34,10 +34,7 @@ DEFINE_SIMPLE_STATE_EVENT(RoomPinnedEvent, "m.room.pinned_messages",
QStringList, pinnedEvents)
constexpr auto RoomAliasesEventKey = "aliases"_ls;
-class Q_DECL_DEPRECATED_X(
- "m.room.aliases events are deprecated by the Matrix spec; use"
- " RoomCanonicalAliasEvent::altAliases() to get non-authoritative aliases")
- QUOTIENT_API RoomAliasesEvent
+class QUOTIENT_API RoomAliasesEvent
: public StateEvent<
EventContent::SingleKeyValue<QStringList, &RoomAliasesEventKey>> {
public:
@@ -45,7 +42,13 @@ public:
explicit RoomAliasesEvent(const QJsonObject& obj)
: StateEvent(typeId(), obj)
{}
+ Q_DECL_DEPRECATED_X(
+ "m.room.aliases events are deprecated by the Matrix spec; use"
+ " RoomCanonicalAliasEvent::altAliases() to get non-authoritative aliases")
QString server() const { return stateKey(); }
+ Q_DECL_DEPRECATED_X(
+ "m.room.aliases events are deprecated by the Matrix spec; use"
+ " RoomCanonicalAliasEvent::altAliases() to get non-authoritative aliases")
QStringList aliases() const { return content().value; }
};
} // namespace Quotient