style(desktop): prettier over this branch's own eslint --fix output
The curly pass left one-line { return x } bodies behind; prettier expands
them. Formatting only.
This commit is contained in:
@@ -1327,8 +1327,7 @@ function adoptContributedPanes(): void {
|
||||
|
||||
const dataOf = (paneId: string) =>
|
||||
panes.find(c => c.id === paneId)?.data as
|
||||
| { defaultCollapsed?: boolean; dock?: PaneDockHint; placement?: string }
|
||||
| undefined
|
||||
{ defaultCollapsed?: boolean; dock?: PaneDockHint; placement?: string } | undefined
|
||||
|
||||
const placementOf = (paneId: string) => dataOf(paneId)?.placement
|
||||
const mainId = panes.find(c => placementOf(c.id) === 'main')?.id
|
||||
|
||||
@@ -74,7 +74,11 @@ interface GroupMembershipPatch {
|
||||
groups: string[]
|
||||
}
|
||||
|
||||
export function groupMembershipPatch(meta: BotMeta | null | undefined, group: string, enabled: boolean): GroupMembershipPatch {
|
||||
export function groupMembershipPatch(
|
||||
meta: BotMeta | null | undefined,
|
||||
group: string,
|
||||
enabled: boolean
|
||||
): GroupMembershipPatch {
|
||||
const name = String(group || '').trim()
|
||||
let groups = botGroups(meta)
|
||||
|
||||
@@ -201,7 +205,11 @@ export function groupLastActivity(room?: GroupChat | null) {
|
||||
/** Seat a group's member roster: local bots whose meta names the group, plus
|
||||
* the room record's stored descriptors (remote members can't ride bot-meta).
|
||||
* Prefers the LIVE roster row for a stored descriptor when present. */
|
||||
export function groupChatMemberBots(group: string, roster: RosterRow[], metaByName: Record<string, BotMeta>): RosterRow[] {
|
||||
export function groupChatMemberBots(
|
||||
group: string,
|
||||
roster: RosterRow[],
|
||||
metaByName: Record<string, BotMeta>
|
||||
): RosterRow[] {
|
||||
const local = (roster || []).filter(bot => botGroups(botRosterMeta(bot, metaByName)).includes(group))
|
||||
const stored = ($groupChats.get()[group] || {}).members || []
|
||||
const seated = new Set(local.map(botRosterKey))
|
||||
|
||||
@@ -146,7 +146,9 @@ export function McpSetupButton({ profile, entry, onDone, ensureProfile }: McpSet
|
||||
useEffect(() => {
|
||||
let alive = true
|
||||
mcpSetupSupported().then(ok => {
|
||||
if (alive) {setSupported(ok)}
|
||||
if (alive) {
|
||||
setSupported(ok)
|
||||
}
|
||||
})
|
||||
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user