Skip to content

Commit 4c2faa7

Browse files
committed
(add docstring to invitePersonToRoom)
1 parent c150b2b commit 4c2faa7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/invites.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ export async function resolveIdentifiers(client: ConferenceMatrixClient, people:
7979
return resolved;
8080
}
8181

82+
/**
83+
* Invites a person to a room idempotently.
84+
*
85+
* 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.
86+
*/
8287
export async function invitePersonToRoom(client: ConferenceMatrixClient, resolvedPerson: ResolvedPersonIdentifier, roomId: string, config: IConfig): Promise<void> {
8388
if (resolvedPerson.mxid) {
8489
if (config.dry_run_enabled) {

0 commit comments

Comments
 (0)