Skip to content

Commit 02cd9a8

Browse files
committed
feat: disable link previews in message composer
1 parent ab39bf5 commit 02cd9a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/messageComposer/configuration/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { TextComposerConfig } from './types';
99

1010
export const DEFAULT_LINK_PREVIEW_MANAGER_CONFIG: LinkPreviewsManagerConfig = {
1111
debounceURLEnrichmentMs: 1500,
12-
enabled: true,
12+
enabled: false,
1313
findURLFn: (text: string): string[] =>
1414
find(text, 'url', { defaultProtocol: 'https' }).reduce<string[]>((acc, link) => {
1515
try {

test/unit/MessageComposer/linkPreviewsManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('LinkPreviewsManager', () => {
109109
const {
110110
messageComposer: { linkPreviewsManager },
111111
} = setup({ config: null });
112-
expect(linkPreviewsManager.config.enabled).toBe(true);
112+
expect(linkPreviewsManager.config.enabled).toBe(false);
113113
expect(linkPreviewsManager.config.debounceURLEnrichmentMs).toBe(
114114
DEFAULT_LINK_PREVIEW_MANAGER_CONFIG.debounceURLEnrichmentMs,
115115
);

0 commit comments

Comments
 (0)