mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
17 lines
450 B
TypeScript
17 lines
450 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import {ComponentBus} from '@app/features/platform/utils/ComponentBus';
|
|
|
|
export interface ChannelComposerDismissalRequest {
|
|
channelId: string;
|
|
}
|
|
|
|
export function requestChannelComposerAffordanceDismissal(channelId: string): boolean {
|
|
const result = ComponentBus.dispatchToFirstResult(
|
|
'TEXTAREA_DISMISS_AFFORDANCE',
|
|
{channelId},
|
|
(candidate) => candidate === true,
|
|
);
|
|
return result === true;
|
|
}
|