Skip to content

Commit

Permalink
Updates based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nvrWhere committed Apr 4, 2024
1 parent 9b1bfc1 commit a4c6278
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 40 deletions.
21 changes: 0 additions & 21 deletions Quotient/events/serveraclevent.cpp

This file was deleted.

19 changes: 0 additions & 19 deletions Quotient/events/serveraclevent.h

This file was deleted.

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 a4c6278

Please sign in to comment.