Skip to content

Commit d0c60e6

Browse files
authored
Remove "history may be shared" banner. (#31881)
* Revert "Update algorithm for history visible banner. (#31577)" This reverts commit ce9c66b. * Revert "Update prop type & documentation for HistoryVisibleBanner and VM. (#31545)" This reverts commit 4da149e. * Revert "Prevent history visible banner from displaying in threads. (#31535)" This reverts commit c7134e8. * Revert "Implement UI for history visibility acknowledgement. (#31156)" This reverts commit cff9119.
1 parent f36905b commit d0c60e6

File tree

14 files changed

+3
-651
lines changed

14 files changed

+3
-651
lines changed

packages/shared-components/src/composer/HistoryVisibleBannerView/HistoryVisibleBannerView.stories.tsx

Lines changed: 0 additions & 42 deletions
This file was deleted.

packages/shared-components/src/composer/HistoryVisibleBannerView/HistoryVisibleBannerView.test.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/shared-components/src/composer/HistoryVisibleBannerView/HistoryVisibleBannerView.tsx

Lines changed: 0 additions & 78 deletions
This file was deleted.

packages/shared-components/src/composer/HistoryVisibleBannerView/__snapshots__/HistoryVisibleBannerView.test.tsx.snap

Lines changed: 0 additions & 62 deletions
This file was deleted.

packages/shared-components/src/composer/HistoryVisibleBannerView/index.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/shared-components/src/i18n/strings/en_EN.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"exceeded_resource_limit_description": "Please contact your service administrator to continue using the service.",
3333
"exceeded_resource_limit_title": "Your message wasn't sent because this homeserver has exceeded a resource limit.",
3434
"failed_to_create_room_title": "Could not start a chat with this user",
35-
"history_visible": "This room has been configured so that new members can read history. <a>Learn More</a>",
3635
"homeserver_blocked_title": "Your message wasn't sent because this homeserver has been blocked by its administrator.",
3736
"monthly_user_limit_reached_title": "Your message wasn't sent because this homeserver has hit its Monthly Active User Limit.",
3837
"requires_consent_agreement_title": "You can't send any messages until you review and agree to our terms and conditions.",

packages/shared-components/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export * from "./audio/PlayPauseButton";
1212
export * from "./audio/SeekBar";
1313
export * from "./avatar/AvatarWithDetails";
1414
export * from "./composer/Banner";
15-
export * from "./composer/HistoryVisibleBannerView";
1615
export * from "./event-tiles/TextualEventView";
1716
export * from "./message-body/MediaBody";
1817
export * from "./pill-input/Pill";
-3.36 KB
Loading

src/components/views/composer/HistoryVisibleBanner.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/components/views/rooms/MessageComposer.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ import { type MatrixClientProps, withMatrixClientHOC } from "../../../contexts/M
5454
import { UIFeature } from "../../../settings/UIFeature";
5555
import { formatTimeLeft } from "../../../DateUtils";
5656
import RoomReplacedSvg from "../../../../res/img/room_replaced.svg";
57-
import { HistoryVisibleBanner } from "../composer/HistoryVisibleBanner";
5857

5958
// The prefix used when persisting editor drafts to localstorage.
6059
export const WYSIWYG_EDITOR_STATE_STORAGE_PREFIX = "mx_wysiwyg_state_";
@@ -675,11 +674,6 @@ export class MessageComposer extends React.Component<IProps, IState> {
675674

676675
return (
677676
<div className={classes} ref={this.ref} role="region" aria-label={_t("a11y|message_composer")}>
678-
<HistoryVisibleBanner
679-
room={this.props.room}
680-
canSendMessages={canSendMessages}
681-
threadId={threadId ?? null}
682-
/>
683677
<div className="mx_MessageComposer_wrapper">
684678
<UserIdentityWarning room={this.props.room} key={this.props.room.roomId} />
685679
<ReplyPreview

0 commit comments

Comments
 (0)