aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-26 23:06:50 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-07-26 23:06:50 +0200
commit36344a6e0283f924b72cb2b25001bdf212a7e707 (patch)
tree8039c4bb4efb6ebfca9d1235a3f437b51e4ba1d3 /lib
parent7754947d7f758ddcb31d4ff3ea79435fb1c171e9 (diff)
downloadlibquotient-36344a6e0283f924b72cb2b25001bdf212a7e707.tar.gz
libquotient-36344a6e0283f924b72cb2b25001bdf212a7e707.zip
...and the definitive fix
Diffstat (limited to 'lib')
-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