From 583eae63f7f4cbf4b7265cb1a869f5f3517791dd Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Thu, 16 Apr 2026 10:03:26 +0100 Subject: [PATCH] Simplifications in InviteDialog (#33156) * InviteDialog: simplify users section for CallTransferDialog The majority of `renderMainTab` is enpty for the call transfer dialog, so we may as well inkine the bits that aren't. * Simplify `renderMainTab` Now that this is unused for CallTransfer, we can simplify * Remove redundant eslint-disable eslint seems happy without this, and we shouldn't be disabling lints for a whole file anyway --- .../components/views/dialogs/InviteDialog.tsx | 36 +++++++++---------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/apps/web/src/components/views/dialogs/InviteDialog.tsx b/apps/web/src/components/views/dialogs/InviteDialog.tsx index 8a9c36e5de..94b6365774 100644 --- a/apps/web/src/components/views/dialogs/InviteDialog.tsx +++ b/apps/web/src/components/views/dialogs/InviteDialog.tsx @@ -65,9 +65,6 @@ import { type UserProfilesStore } from "../../../stores/UserProfilesStore"; import InviteProgressBody from "./InviteProgressBody.tsx"; import MultiInviter, { type CompletionStates as MultiInviterCompletionStates } from "../../../utils/MultiInviter.ts"; -// we have a number of types defined from the Matrix spec which can't reasonably be altered here. -/* eslint-disable camelcase */ - interface Result { userId: string; user: Member; @@ -1186,8 +1183,7 @@ export default class InviteDialog extends React.PureComponent - {buttonText} - - ); - return (

{helpText}

{this.renderEditor()} - {goButton} + + {buttonText} +
{this.state.busy ? : this.renderSuggestions()}
@@ -1342,7 +1335,12 @@ export default class InviteDialog extends React.PureComponent +
{this.renderEditor()}
+ {this.state.busy ? : this.renderSuggestions()} + + ); const tabs: NonEmptyArray> = [ new Tab(