Skip to content

Commit

Permalink
Merge branch 'develop_tchap' into add-tab-to-download-csv-file-of-the…
Browse files Browse the repository at this point in the history
…-list-of-users-in-a-room
  • Loading branch information
estellecomment committed Aug 24, 2023
2 parents eb2d9ed + 0c17c76 commit a7eab5a
Show file tree
Hide file tree
Showing 19 changed files with 1,546 additions and 253 deletions.
3 changes: 2 additions & 1 deletion customisations.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"src/tchap/components/views/messages/OriginalVoiceMessageBody.tsx": "node_modules/matrix-react-sdk/src/components/views/messages/MVoiceMessageBody.tsx",
"src/components/views/messages/UnknownBody.tsx": "src/tchap/components/views/messages/TchapUnknownBody.tsx",
"src/components/views/settings/JoinRuleSettings.tsx": "src/tchap/components/views/settings/TchapJoinRuleSettings.tsx",
"src/components/views/dialogs/RoomUpgradeWarningDialog.tsx": "src/tchap/components/views/dialogs/TchapRoomUpgradeWarningDialog.tsx"
"src/components/views/dialogs/RoomUpgradeWarningDialog.tsx": "src/tchap/components/views/dialogs/TchapRoomUpgradeWarningDialog.tsx",
"src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx": "src/tchap/components/views/settings/tabs/user/TchapHelpUserSettingsTab.tsx"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "element-web",
"productName": "Tchap",
"version": "4.3.3",
"version": "4.3.6",
"version-element-web": "1.11.30",
"description": "A feature-rich client for Matrix.org",
"author": "DINUM",
Expand Down

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions patches/better-help-settings-2/matrix-react-sdk+3.71.1.patch
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,19 @@ index 7ee24e0..6a9d898 100644

interface IProps {
feature?: string;
diff --git a/node_modules/matrix-react-sdk/src/components/views/elements/AccessibleButton.tsx b/node_modules/matrix-react-sdk/src/components/views/elements/AccessibleButton.tsx
index 10f18f1..8d18769 100644
--- a/node_modules/matrix-react-sdk/src/components/views/elements/AccessibleButton.tsx
+++ b/node_modules/matrix-react-sdk/src/components/views/elements/AccessibleButton.tsx
@@ -75,7 +75,7 @@ type IProps<T extends keyof JSX.IntrinsicElements> = DynamicHtmlElementProps<T>
disabled?: boolean;
className?: string;
triggerOnMouseDown?: boolean;
- onClick: ((e: ButtonEvent) => void | Promise<void>) | null;
+ onClick?: ((e: ButtonEvent) => void | Promise<void>) | null;
};

export interface IAccessibleButtonProps extends React.InputHTMLAttributes<Element> {
diff --git a/node_modules/matrix-react-sdk/src/components/views/elements/ErrorBoundary.tsx b/node_modules/matrix-react-sdk/src/components/views/elements/ErrorBoundary.tsx
index a230ab8..5a9a2a2 100644
--- a/node_modules/matrix-react-sdk/src/components/views/elements/ErrorBoundary.tsx
Expand Down
192 changes: 0 additions & 192 deletions patches/better-help-settings/matrix-react-sdk+3.71.1.patch

This file was deleted.

17 changes: 12 additions & 5 deletions patches/cross-signing-ui/matrix-react-sdk+3.71.1.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

diff --git a/node_modules/matrix-react-sdk/res/css/views/auth/_CompleteSecurityBody.pcss b/node_modules/matrix-react-sdk/res/css/views/auth/_CompleteSecurityBody.pcss
index c23f53b..7aa9f25 100644
--- a/node_modules/matrix-react-sdk/res/css/views/auth/_CompleteSecurityBody.pcss
Expand Down Expand Up @@ -208,18 +207,26 @@ index 2cbfbf8..efe6b26 100644
</div>
</div>
diff --git a/node_modules/matrix-react-sdk/src/components/views/rooms/DecryptionFailureBar.tsx b/node_modules/matrix-react-sdk/src/components/views/rooms/DecryptionFailureBar.tsx
index 94cf02d..52b9e53 100644
index 94cf02d..8deef31 100644
--- a/node_modules/matrix-react-sdk/src/components/views/rooms/DecryptionFailureBar.tsx
+++ b/node_modules/matrix-react-sdk/src/components/views/rooms/DecryptionFailureBar.tsx
@@ -193,6 +193,7 @@ export const DecryptionFailureBar: React.FC<IProps> = ({ failures }) => {
@@ -29,6 +29,7 @@ import MatrixClientContext from "../../../contexts/MatrixClientContext";
import SetupEncryptionDialog from "../dialogs/security/SetupEncryptionDialog";
import { SetupEncryptionStore } from "../../../stores/SetupEncryptionStore";
import Spinner from "../elements/Spinner";
+import TchapUrls from "../../../../../../src/tchap/util/TchapUrls";

interface IProps {
failures: MatrixEvent[];
@@ -193,6 +194,7 @@ export const DecryptionFailureBar: React.FC<IProps> = ({ failures }) => {
)}
</React.Fragment>
);
+ /* :tchap: replace reset button by open-security button
button = (
<AccessibleButton
className="mx_DecryptionFailureBar_end_button"
@@ -203,28 +204,43 @@ export const DecryptionFailureBar: React.FC<IProps> = ({ failures }) => {
@@ -203,28 +205,43 @@ export const DecryptionFailureBar: React.FC<IProps> = ({ failures }) => {
{_t("Reset")}
</AccessibleButton>
);
Expand Down Expand Up @@ -255,7 +262,7 @@ index 94cf02d..52b9e53 100644
+ /* :TCHAP: Add for N bug */ message = <React.Fragment>{_t(
+ "Or if that doesn't work, please follow <a>these steps</a>.",
+ {},
+ {a: (sub)=><a href="https://tchap.beta.gouv.fr/faq/messages-verrouilles" target="_blank">{sub}</a>}
+ {a: (sub)=><a href={TchapUrls.lockedMessagesPage} target="_blank">{sub}</a>}
+ )}</React.Fragment>;
+
+ // :TCHAP: shrink long banner
Expand Down
42 changes: 42 additions & 0 deletions patches/error-tchap-is-down/matrix-react-sdk+3.71.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
diff --git a/node_modules/matrix-react-sdk/src/components/structures/RoomSearchView.tsx b/node_modules/matrix-react-sdk/src/components/structures/RoomSearchView.tsx
index 00b9284..e55da17 100644
--- a/node_modules/matrix-react-sdk/src/components/structures/RoomSearchView.tsx
+++ b/node_modules/matrix-react-sdk/src/components/structures/RoomSearchView.tsx
@@ -34,6 +34,7 @@ import ResizeNotifier from "../../utils/ResizeNotifier";
import MatrixClientContext from "../../contexts/MatrixClientContext";
import { RoomPermalinkCreator } from "../../utils/permalinks/Permalinks";
import RoomContext from "../../contexts/RoomContext";
+import Tchapi18nUtils from "../../../../../src/tchap/i18n/Tchapi18nUtils";

const DEBUG = false;
let debuglog = function (msg: string): void {};
@@ -129,7 +130,7 @@ export const RoomSearchView = forwardRef<ScrollPanel, Props>(
title: _t("Search failed"),
description:
error?.message ??
- _t("Server may be unavailable, overloaded, or search timed out :("),
+ Tchapi18nUtils.getServerDownMessage(),
});
return false;
},
diff --git a/node_modules/matrix-react-sdk/src/components/structures/RoomStatusBar.tsx b/node_modules/matrix-react-sdk/src/components/structures/RoomStatusBar.tsx
index 24530d4..2f8f555 100644
--- a/node_modules/matrix-react-sdk/src/components/structures/RoomStatusBar.tsx
+++ b/node_modules/matrix-react-sdk/src/components/structures/RoomStatusBar.tsx
@@ -30,6 +30,7 @@ import AccessibleButton from "../views/elements/AccessibleButton";
import InlineSpinner from "../views/elements/InlineSpinner";
import MatrixClientContext from "../../contexts/MatrixClientContext";
import { RoomStatusBarUnsentMessages } from "./RoomStatusBarUnsentMessages";
+import Tchapi18nUtils from '../../../../../src/tchap/i18n/Tchapi18nUtils'; // :TCHAP:

const STATUS_BAR_HIDDEN = 0;
const STATUS_BAR_EXPANDED = 1;
@@ -286,7 +287,7 @@ export default class RoomStatusBar extends React.PureComponent<IProps, IState> {
/>
<div>
<div className="mx_RoomStatusBar_connectionLostBar_title">
- {_t("Connectivity to the server has been lost.")}
+ {Tchapi18nUtils.getServerDownMessage()}
</div>
<div className="mx_RoomStatusBar_connectionLostBar_desc">
{_t("Sent messages will be stored until your connection has returned.")}
Loading

0 comments on commit a7eab5a

Please sign in to comment.