diff --git a/patches/patches.json b/patches/patches.json index 5add8ec223..dcbd88db19 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -9,7 +9,10 @@ }, "show-icon-on-public-room": { "package": "matrix-react-sdk", - "files": ["src/components/views/avatars/DecoratedRoomAvatar.tsx"] + "files": [ + "src/components/views/avatars/DecoratedRoomAvatar.tsx", + "src/components/views/right_panel/RoomSummaryCard.tsx" + ] }, "simplify-exchange-key-message": { "package": "matrix-react-sdk", diff --git a/patches/show-icon-on-public-room/matrix-react-sdk+3.79.0.patch b/patches/show-icon-on-public-room/matrix-react-sdk+3.79.0.patch index 1b460f08b4..9e62def1c3 100644 --- a/patches/show-icon-on-public-room/matrix-react-sdk+3.79.0.patch +++ b/patches/show-icon-on-public-room/matrix-react-sdk+3.79.0.patch @@ -64,3 +64,36 @@ index fffb643..1034d9c 100644 if (!this.isWatchingTimeline) { this.props.room.on(RoomEvent.Timeline, this.onRoomTimeline); this.isWatchingTimeline = true; +diff --git a/node_modules/matrix-react-sdk/src/components/views/right_panel/RoomSummaryCard.tsx b/node_modules/matrix-react-sdk/src/components/views/right_panel/RoomSummaryCard.tsx +index d87c556..0c423b4 100644 +--- a/node_modules/matrix-react-sdk/src/components/views/right_panel/RoomSummaryCard.tsx ++++ b/node_modules/matrix-react-sdk/src/components/views/right_panel/RoomSummaryCard.tsx +@@ -22,7 +22,7 @@ import MatrixClientContext from "../../../contexts/MatrixClientContext"; + import { useIsEncrypted } from "../../../hooks/useIsEncrypted"; + import BaseCard, { Group } from "./BaseCard"; + import { _t } from "../../../languageHandler"; +-import RoomAvatar from "../avatars/RoomAvatar"; ++import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar"; + import AccessibleButton, { ButtonEvent, IAccessibleButtonProps } from "../elements/AccessibleButton"; + import defaultDispatcher from "../../../dispatcher/dispatcher"; + import { RightPanelPhases } from "../../../stores/right-panel/RightPanelStorePhases"; +@@ -307,7 +307,11 @@ const RoomSummaryCard: React.FC = ({ room, permalinkCreator, onClose }) + const header = ( + +
++ {/** :TCHAP: decorate the avatar with the tchap lock icons + ++ */} ++ ++ {/** remove the extra badge + = ({ room, permalinkCreator, onClose }) + mx_RoomSummaryCard_e2ee_verified: isRoomEncrypted && e2eStatus === E2EStatus.Verified, + })} + /> ++ end :TCHAP: */} +
+ +