mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-07 06:22:30 +01:00
Ensure we set showUrlPreview
This commit is contained in:
parent
c483e9a20a
commit
b15f2f86c7
@ -498,6 +498,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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -67,6 +67,7 @@ describe("<SendMessageComposer/>", () => {
|
||||
showJoinLeaves: true,
|
||||
showAvatarChanges: true,
|
||||
showDisplaynameChanges: true,
|
||||
showUrlPreview: false,
|
||||
matrixClientIsReady: false,
|
||||
timelineRenderingType: TimelineRenderingType.Room,
|
||||
mainSplitContentType: MainSplitContentType.Timeline,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user