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)
| 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) |