Skip to content
Snippets Groups Projects
Unverified Commit 3de66415 authored by Yash Rajpal's avatar Yash Rajpal Committed by GitHub
Browse files

regression(meteor): Fix message composer popup (#29530)

parent 677919a2
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/meteor': minor
---
Fix message composer popup bug
import type { ComposerPopupOption } from '../../../../../client/views/room/contexts/ComposerPopupContext';
export const useEnablePopupPreview = <T extends { _id: string; sort?: number }>(filter: unknown, popup?: ComposerPopupOption<T>) =>
popup && !popup.preview && popup?.triggerLength ? typeof filter === 'string' && popup.triggerLength - 1 < filter.length : true;
popup && !popup.preview && (popup?.triggerLength ? typeof filter === 'string' && popup.triggerLength - 1 < filter.length : true);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment