aboutsummaryrefslogtreecommitdiff
path: root/roomserver/internal/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/internal/api.go')
-rw-r--r--roomserver/internal/api.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/roomserver/internal/api.go b/roomserver/internal/api.go
index 1e08f6a3..a71fd2d1 100644
--- a/roomserver/internal/api.go
+++ b/roomserver/internal/api.go
@@ -340,3 +340,11 @@ func (r *RoomserverInternalAPI) SigningIdentityFor(ctx context.Context, roomID s
func (r *RoomserverInternalAPI) AssignRoomNID(ctx context.Context, roomID spec.RoomID, roomVersion gomatrixserverlib.RoomVersion) (roomNID types.RoomNID, err error) {
return r.DB.AssignRoomNID(ctx, roomID, roomVersion)
}
+
+func (r *RoomserverInternalAPI) InsertReportedEvent(
+ ctx context.Context,
+ roomID, eventID, reportingUserID, reason string,
+ score int64,
+) (int64, error) {
+ return r.DB.InsertReportedEvent(ctx, roomID, eventID, reportingUserID, reason, score)
+}