diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2023-10-25 09:47:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 09:47:21 +0200 |
commit | 4fa8512d576ca2a425e6cc546264934d959bced5 (patch) | |
tree | 7931367c774d168535583ed294c3d05d11fed7d3 /roomserver/storage | |
parent | 1b124fe9cba8b4699a1f65382e4ea1a5674d12fa (diff) |
Check event is not rejected (#3243)
Companion PR to https://github.com/matrix-org/gomatrixserverlib/pull/421
Diffstat (limited to 'roomserver/storage')
-rw-r--r-- | roomserver/storage/shared/room_updater.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roomserver/storage/shared/room_updater.go b/roomserver/storage/shared/room_updater.go index 70672a33..06284d2e 100644 --- a/roomserver/storage/shared/room_updater.go +++ b/roomserver/storage/shared/room_updater.go @@ -250,3 +250,7 @@ func (u *RoomUpdater) MarkEventAsSent(eventNID types.EventNID) error { func (u *RoomUpdater) MembershipUpdater(targetUserNID types.EventStateKeyNID, targetLocal bool) (*MembershipUpdater, error) { return u.d.membershipUpdaterTxn(u.ctx, u.txn, u.roomInfo.RoomNID, targetUserNID, targetLocal) } + +func (u *RoomUpdater) IsEventRejected(ctx context.Context, roomNID types.RoomNID, eventID string) (bool, error) { + return u.d.IsEventRejected(ctx, roomNID, eventID) +} |