Skip to content

Commit

Permalink
(add docstring to invitePersonToRoom)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Feb 4, 2024
1 parent 8212678 commit 9e55595
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/invites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export async function resolveIdentifiers(client: ConferenceMatrixClient, people:
return resolved;
}

/**
* Invites a person to a room idempotently.
*
* Raises an exception when we don't have information to invite the user, or there is some Matrix or network error preventing us from doing so.
*/
export async function invitePersonToRoom(client: ConferenceMatrixClient, resolvedPerson: ResolvedPersonIdentifier, roomId: string, config: IConfig): Promise<void> {
if (resolvedPerson.mxid) {
if (config.dry_run_enabled) {
Expand Down

0 comments on commit 9e55595

Please sign in to comment.