feat: Security
This commit is contained in:
@@ -284,14 +284,13 @@ export class TitleBarComponent {
|
||||
const invite = await firstValueFrom(this.serverDirectory.createInvite(
|
||||
room.id,
|
||||
{
|
||||
requesterUserId: user.id,
|
||||
requesterDisplayName: user.displayName,
|
||||
requesterRole: user.role
|
||||
},
|
||||
this.toSourceSelector(room)
|
||||
));
|
||||
|
||||
await this.copyInviteLink(invite.inviteUrl);
|
||||
await this.copyInviteLink(invite.browserUrl);
|
||||
this.inviteStatus.set(this.appI18n.instant('shell.titleBar.inviteCopied'));
|
||||
} catch (error: unknown) {
|
||||
const inviteError = error as { error?: { error?: string } };
|
||||
|
||||
Reference in New Issue
Block a user