MCPcopy Create free account
hub / github.com/daodst/chat / AddInviteEvent

Method AddInviteEvent

syncapi/storage/interface.go:102–102  ·  view source on GitHub ↗

AddInviteEvent stores a new invite event for a user. If the invite was successfully stored this returns the stream ID it was stored at. Returns an error if there was a problem communicating with the database.

(ctx context.Context, inviteEvent *gomatrixserverlib.HeaderedEvent)

Source from the content-addressed store, hash-verified

100 // If the invite was successfully stored this returns the stream ID it was stored at.
101 // Returns an error if there was a problem communicating with the database.
102 AddInviteEvent(ctx context.Context, inviteEvent *gomatrixserverlib.HeaderedEvent) (types.StreamPosition, error)
103 // RetireInviteEvent removes an old invite event from the database. Returns the new position of the retired invite.
104 // Returns an error if there was a problem communicating with the database.
105 RetireInviteEvent(ctx context.Context, inviteEventID string) (types.StreamPosition, error)

Callers 1

onNewInviteEventMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected