Skip to content

Commit

Permalink
Change settings to true by default (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros authored Sep 11, 2024
1 parent 07125f5 commit 03004a5
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions playwright/e2e/pinned-messages/pinned-messages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import { test } from "./index";
import { expect } from "../../element-web-test";

test.describe("Pinned messages", () => {
test.use({
labsFlags: ["feature_pinning"],
});

test("should show the empty state when there are no pinned messages", async ({ page, app, room1, util }) => {
await util.goTo(room1);
await util.openRoomInfo();
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export const SETTINGS: { [setting: string]: ISetting } = {
displayName: _td("labs|pinning"),
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS_WITH_CONFIG_PRIORITISED,
supportedLevelsAreOrdered: true,
default: false,
default: true,
},
"feature_wysiwyg_composer": {
isFeature: true,
Expand Down
5 changes: 4 additions & 1 deletion test/test-utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,10 @@ export function mkStubRoom(
name: string | undefined,
client: MatrixClient | undefined,
): Room {
const stubTimeline = { getEvents: (): MatrixEvent[] => [] } as unknown as EventTimeline;
const stubTimeline = {
getEvents: (): MatrixEvent[] => [],
getState: (): RoomState | undefined => undefined,
} as unknown as EventTimeline;
return {
canInvite: jest.fn(),
client,
Expand Down

0 comments on commit 03004a5

Please sign in to comment.