Skip to content

Commit

Permalink
Merge #729(nvrWhere): Create an event for m.room.server_acl
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal authored Apr 6, 2024
2 parents e5bc0d9 + a4c6278 commit 221faea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Quotient/events/simplestateevents.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-FileCopyrightText: 2017 Kitsune Ral <kitsune-ral@users.sf.net>
// SPDX-FileCopyrightText: 2024 James Graham <james.h.graham@protonmail.com>
// SPDX-License-Identifier: LGPL-2.1-or-later

#pragma once
Expand Down Expand Up @@ -50,4 +51,15 @@ class QUOTIENT_API RoomAliasesEvent
" RoomCanonicalAliasEvent::altAliases() to get non-authoritative aliases")
QStringList aliases() const { return content().value; }
};

class QUOTIENT_API RoomServerAclEvent : public StateEvent {
public:
QUO_EVENT(RoomServerAclEvent, "m.room.server_acl")

using StateEvent::StateEvent;

QUO_CONTENT_GETTER(QStringList, allow)
QUO_CONTENT_GETTER(bool, allowIpLiterals)
QUO_CONTENT_GETTER(QStringList, deny)
};
} // namespace Quotient

0 comments on commit 221faea

Please sign in to comment.