diff --git a/packages/shared-components/playwright/snapshots/composer-historyvisiblebannerview--default-linux.png b/packages/shared-components/playwright/snapshots/composer-historyvisiblebannerview--default-linux.png index 902ac00f7b..7ab93a0cb8 100644 Binary files a/packages/shared-components/playwright/snapshots/composer-historyvisiblebannerview--default-linux.png and b/packages/shared-components/playwright/snapshots/composer-historyvisiblebannerview--default-linux.png differ diff --git a/playwright/snapshots/room/room-status-bar.spec.ts/local-room-create-failed-linux.png b/playwright/snapshots/room/room-status-bar.spec.ts/local-room-create-failed-linux.png index e530e8c0f7..304a425466 100644 Binary files a/playwright/snapshots/room/room-status-bar.spec.ts/local-room-create-failed-linux.png and b/playwright/snapshots/room/room-status-bar.spec.ts/local-room-create-failed-linux.png differ diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 4e7f3cf1dc..ee49c92cb4 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -2131,7 +2131,7 @@ "exceeded_resource_limit_description": "Please contact your service administrator to continue using the service.", "exceeded_resource_limit_title": "Your message wasn't sent because this homeserver has exceeded a resource limit.", "failed_to_create_room_title": "Could not start a chat with this user", - "history_visible": "This room has been configured so that new members can read history. Learn more", + "history_visible": "This room has been configured so that new members can read history. Learn More", "homeserver_blocked_title": "Your message wasn't sent because this homeserver has been blocked by its administrator.", "monthly_user_limit_reached_title": "Your message wasn't sent because this homeserver has hit its Monthly Active User Limit.", "requires_consent_agreement_title": "You can't send any messages until you review and agree to our terms and conditions.", diff --git a/src/viewmodels/room/RoomStatusBar.ts b/src/viewmodels/room/RoomStatusBar.ts index 3d0c1e1d96..c87c04c2cd 100644 --- a/src/viewmodels/room/RoomStatusBar.ts +++ b/src/viewmodels/room/RoomStatusBar.ts @@ -25,7 +25,7 @@ import { MatrixClientPeg } from "../../MatrixClientPeg"; import Resend from "../../Resend"; import { Action } from "../../dispatcher/actions"; import dis from "../../dispatcher/dispatcher"; -import { LocalRoom, LocalRoomState } from "../../models/LocalRoom"; +import { type LocalRoom, LocalRoomState } from "../../models/LocalRoom"; interface PropsWithRoom { room: Room | LocalRoom; diff --git a/test/viewmodels/room/RoomStatusBar-test.ts b/test/viewmodels/room/RoomStatusBar-test.ts index 0475da14aa..35c04fe9f3 100644 --- a/test/viewmodels/room/RoomStatusBar-test.ts +++ b/test/viewmodels/room/RoomStatusBar-test.ts @@ -5,19 +5,20 @@ * Please see LICENSE files in the repository root for full details. */ -import { RoomStatusBarViewModel } from "../../../src/viewmodels/room/RoomStatusBar"; -import { mkEvent, mkRoom, stubClient } from "../../test-utils"; import { SyncState, MatrixError, ClientEvent, - MatrixClient, - Room, + type MatrixClient, + type Room, type MatrixEvent, EventStatus, } from "matrix-js-sdk/src/matrix"; import { RoomStatusBarState } from "@element-hq/web-shared-components"; import { type MockedObject } from "jest-mock"; + +import { mkEvent, mkRoom, stubClient } from "../../test-utils"; +import { RoomStatusBarViewModel } from "../../../src/viewmodels/room/RoomStatusBar"; import { LocalRoom, LocalRoomState } from "../../../src/models/LocalRoom"; const userId = "@example:example.org"; @@ -66,7 +67,7 @@ describe("RoomStatusBarViewModel", () => { }); // Because we expect LoggedInView to pop a toast - it("should resolve state to nothing if sync error is M_RESOURCE_LIMIT_EXCEEDED ", () => { + it("should resolve state to nothing if sync error is M_RESOURCE_LIMIT_EXCEEDED", () => { client.getSyncState.mockReturnValue(SyncState.Error); client.getSyncStateData.mockReturnValue({ error: new MatrixError({ errcode: "M_RESOURCE_LIMIT_EXCEEDED" }) }); client.emit(ClientEvent.Sync, SyncState.Error, null);