Ensure we set showUrlPreview

This commit is contained in:
Half-Shot 2026-02-23 12:39:23 +00:00
parent 143335708c
commit 68c6539eb6
3 changed files with 4 additions and 0 deletions

View File

@ -497,6 +497,8 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
showJoinLeaves: true,
showAvatarChanges: true,
showDisplaynameChanges: true,
// Default to false to avoid any accidental leakage.
showUrlPreview: false,
matrixClientIsReady: context.client?.isInitialSyncComplete(),
mainSplitContentType: MainSplitContentType.Timeline,
timelineRenderingType: TimelineRenderingType.Room,

View File

@ -75,6 +75,7 @@ export function getRoomContext(room: Room, override: Partial<RoomContextType>):
showJoinLeaves: true,
showAvatarChanges: true,
showDisplaynameChanges: true,
showUrlPreview: false,
matrixClientIsReady: false,
timelineRenderingType: TimelineRenderingType.Room,
mainSplitContentType: MainSplitContentType.Timeline,

View File

@ -67,6 +67,7 @@ describe("<SendMessageComposer/>", () => {
showJoinLeaves: true,
showAvatarChanges: true,
showDisplaynameChanges: true,
showUrlPreview: false,
matrixClientIsReady: false,
timelineRenderingType: TimelineRenderingType.Room,
mainSplitContentType: MainSplitContentType.Timeline,