Skip to content

Commit

Permalink
feat(merge): merge conflict with v3.100.0-rc.0, decrypt message, room…
Browse files Browse the repository at this point in the history
…topic, package.json, accessiblebutton
  • Loading branch information
marc.sirisak committed May 27, 2024
1 parent 96909be commit cab3d52
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 42 deletions.
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{
"name": "matrix-react-sdk",
<<<<<<< HEAD
"version": "0.0.0",
"version-matrix": "3.98.0",
"version-matrix": "3.100.0-rc.0",
"description": "SDK for matrix.org using React for Tchap",
"author": "DINUM",
=======
"version": "3.100.0-rc.0",
"description": "SDK for matrix.org using React",
"author": "matrix.org",
>>>>>>> v3.100.0-rc.0
"repository": {
"type": "git",
"url": "https://github.com/tchapgouv/matrix-react-sdk-tchap"
Expand Down
4 changes: 0 additions & 4 deletions src/components/views/elements/AccessibleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ type Props<T extends keyof JSX.IntrinsicElements> = DynamicHtmlElementProps<T> &
/**
* Event handler for button activation. Should be implemented exactly like a normal `onClick` handler.
*/
<<<<<<< HEAD
onClick?: ((e: ButtonEvent) => void | Promise<void>) | null;
=======
onClick: ((e: ButtonEvent) => void | Promise<void>) | null;
/**
* The tooltip to show on hover or focus.
Expand All @@ -109,7 +106,6 @@ type Props<T extends keyof JSX.IntrinsicElements> = DynamicHtmlElementProps<T> &
* Callback for when the tooltip is opened or closed.
*/
onTooltipOpenChange?: TooltipProps["onOpenChange"];
>>>>>>> v3.100.0-rc.0
};

/**
Expand Down
34 changes: 13 additions & 21 deletions src/components/views/messages/DecryptionFailureBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,8 @@ import { DecryptionFailureCode } from "matrix-js-sdk/src/crypto-api";

import { _t } from "../../../languageHandler";
import { IBodyProps } from "./IBodyProps";
<<<<<<< HEAD
import TchapUrls from "../../../../../../src/tchap/util/TchapUrls"; // :TCHAP: better-text-for-locked-messages
import ExternalLink from "../elements/ExternalLink"; // :TCHAP: better-text-for-locked-messages

function getErrorMessage(mxEvent?: MatrixEvent): string {
return mxEvent?.isEncryptedDisabledForUnverifiedDevices
? _t("timeline|decryption_failure_blocked")
// :TCHAP: better-text-for-locked-messages - : _t("threads|unable_to_decrypt");
: _t(
"threads|unable_to_decrypt_with_info_message",
{},
{
a: (sub) => (
<ExternalLink href={TchapUrls.lockedMessagesPage}>
{sub}
</ExternalLink>
),
},
);
// end :TCHAP:
=======
import { LocalDeviceVerificationStateContext } from "../../../contexts/LocalDeviceVerificationStateContext";

function getErrorMessage(mxEvent: MatrixEvent, isVerified: boolean | undefined): string {
Expand All @@ -61,8 +42,19 @@ function getErrorMessage(mxEvent: MatrixEvent, isVerified: boolean | undefined):
case DecryptionFailureCode.HISTORICAL_MESSAGE_USER_NOT_JOINED:
return _t("timeline|decryption_failure|historical_event_user_not_joined");
}
return _t("timeline|decryption_failure|unable_to_decrypt");
>>>>>>> v3.100.0-rc.0
// :TCHAP: better-text-for-locked-messages : return _t("timeline|decryption_failure|unable_to_decrypt");
return _t(
"timeline|decryption_failure|unable_to_decrypt",
{},
{
a: (sub) => (
<ExternalLink href={TchapUrls.lockedMessagesPage}>
{sub}
</ExternalLink>
),
},
);
// end :TCHAP:
}

// A placeholder element for messages that could not be decrypted
Expand Down
3 changes: 0 additions & 3 deletions src/components/views/right_panel/RoomSummaryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,9 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, permalinkCreator, onClose, on
</Badge>
)}
</Flex>
<<<<<<< HEAD
*/}
=======

<RoomTopic room={room} />
>>>>>>> v3.100.0-rc.0
</header>
);

Expand Down
8 changes: 1 addition & 7 deletions src/components/views/rooms/ThreadSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,9 @@ export const ThreadMessagePreview: React.FC<IPreviewProps> = ({ thread, showDisp
className="mx_ThreadSummary_content mx_DecryptionFailureBody"
title={_t("timeline|decryption_failure|unable_to_decrypt")}
>
<<<<<<< HEAD
{ /* :TCHAP: better-text-for-locked-messages - <span className="mx_ThreadSummary_message-preview">{_t("threads|unable_to_decrypt")}</span>*/}
<span className="mx_ThreadSummary_message-preview">
{_t("threads|unable_to_decrypt_with_info_message", {},
{_t("timeline|decryption_failure|unable_to_decrypt", {},
{
a: (sub) => (
<ExternalLink href={TchapUrls.lockedMessagesPage}>
Expand All @@ -153,11 +152,6 @@ export const ThreadMessagePreview: React.FC<IPreviewProps> = ({ thread, showDisp
</span>
{/** end :TCHAP: */}

=======
<span className="mx_ThreadSummary_message-preview">
{_t("timeline|decryption_failure|unable_to_decrypt")}
</span>
>>>>>>> v3.100.0-rc.0
</div>
) : (
<div className="mx_ThreadSummary_content" title={preview}>
Expand Down

0 comments on commit cab3d52

Please sign in to comment.