Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 789ce6d

Browse files
committed
Change settings to true by default
1 parent ccb1a61 commit 789ce6d

File tree

7 files changed

+5
-6
lines changed

7 files changed

+5
-6
lines changed

playwright/e2e/pinned-messages/pinned-messages.spec.ts

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ import { test } from "./index";
1010
import { expect } from "../../element-web-test";
1111

1212
test.describe("Pinned messages", () => {
13-
test.use({
14-
labsFlags: ["feature_pinning"],
15-
});
16-
1713
test("should show the empty state when there are no pinned messages", async ({ page, app, room1, util }) => {
1814
await util.goTo(room1);
1915
await util.openRoomInfo();
Loading
Loading
Loading
Loading

src/settings/Settings.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export const SETTINGS: { [setting: string]: ISetting } = {
280280
displayName: _td("labs|pinning"),
281281
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS_WITH_CONFIG_PRIORITISED,
282282
supportedLevelsAreOrdered: true,
283-
default: false,
283+
default: true,
284284
},
285285
"feature_wysiwyg_composer": {
286286
isFeature: true,

test/test-utils/test-utils.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,10 @@ export function mkStubRoom(
571571
name: string | undefined,
572572
client: MatrixClient | undefined,
573573
): Room {
574-
const stubTimeline = { getEvents: (): MatrixEvent[] => [] } as unknown as EventTimeline;
574+
const stubTimeline = {
575+
getEvents: (): MatrixEvent[] => [],
576+
getState: (): RoomState | undefined => undefined,
577+
} as unknown as EventTimeline;
575578
return {
576579
canInvite: jest.fn(),
577580
client,

0 commit comments

Comments
 (0)