-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to "View source" on a redacted event results in an error #24165
Labels
A-Redaction
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Tolerable
Low/no impact on users
T-Defect
Comments
ghost
added
the
T-Defect
label
Jan 5, 2023
andybalaam
added
S-Tolerable
Low/no impact on users
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
A-Redaction
labels
Jan 5, 2023
Please send logs. |
t3chguy
added
X-Needs-Info
This issue is blocked awaiting information from the reporter
and removed
X-Needs-Info
This issue is blocked awaiting information from the reporter
labels
Jan 11, 2023
clarkf
added a commit
to clarkf/matrix-react-sdk
that referenced
this issue
Jan 13, 2023
Clicking 'View Source' in the context menu of a redacted event causes an error, and the user gets no visible result. This fixes <ViewSource /> to indicate that the source is unavailable when a message has been redacted. The original source remains available. <SyntaxHighlight /> requires a non-null string for its `content` prop, and, in the case of redacted events, <ViewSource /> was passing `undefined`. This is ultimately because redacting an event causes `MatrixEvent.clearEvent` to be `undefined`, which <ViewSource /> wasn't checking. Fixes element-hq/element-web#24165 Signed-off-by: Clark Fischer <[email protected]>
3 tasks
clarkf
added a commit
to clarkf/matrix-react-sdk
that referenced
this issue
Jan 14, 2023
Clicking 'View Source' in the context menu of a redacted event causes an error, and the user gets no visible result. This fixes <ViewSource /> to indicate that the source is unavailable when a message has been redacted. The original source remains available. <SyntaxHighlight /> requires a non-null string for its `content` prop, and, in the case of redacted events, <ViewSource /> was passing `undefined`. This is ultimately because redacting an event causes `MatrixEvent.clearEvent` to be `undefined`, which <ViewSource /> wasn't checking. Fixes element-hq/element-web#24165 Signed-off-by: Clark Fischer <[email protected]>
clarkf
added a commit
to clarkf/matrix-react-sdk
that referenced
this issue
Jan 14, 2023
Clicking 'View Source' in the context menu of a redacted event causes an error, and the user gets no visible result. This fixes <ViewSource /> to indicate that the source is unavailable when a message has been redacted. The original source remains available. <SyntaxHighlight /> requires a non-null string for its `content` prop, and, in the case of redacted events, <ViewSource /> was passing `undefined`. This is ultimately because redacting an event causes `MatrixEvent.clearEvent` to be `undefined`, which <ViewSource /> wasn't checking. Fixes element-hq/element-web#24165 Signed-off-by: Clark Fischer <[email protected]>
clarkf
added a commit
to clarkf/matrix-react-sdk
that referenced
this issue
Jan 14, 2023
Clicking 'View Source' in the context menu of a redacted event causes an error, and the user gets no visible result. This fixes <ViewSource /> to indicate that the source is unavailable when a message has been redacted. The original source remains available. <SyntaxHighlight /> requires a non-null string for its `content` prop, and, in the case of redacted events, <ViewSource /> was passing `undefined`. This is ultimately because redacting an event causes `MatrixEvent.clearEvent` to be `undefined`, which <ViewSource /> wasn't checking. Fixes element-hq/element-web#24165 Signed-off-by: Clark Fischer <[email protected]>
SimonBrandner
pushed a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Jan 15, 2023
* Fix viewing source of redacted events Clicking 'View Source' in the context menu of a redacted event causes an error, and the user gets no visible result. This fixes <ViewSource /> to indicate that the source is unavailable when a message has been redacted. The original source remains available. <SyntaxHighlight /> requires a non-null string for its `content` prop, and, in the case of redacted events, <ViewSource /> was passing `undefined`. This is ultimately because redacting an event causes `MatrixEvent.clearEvent` to be `undefined`, which <ViewSource /> wasn't checking. Fixes element-hq/element-web#24165 Signed-off-by: Clark Fischer <[email protected]> * Use correct highlight.js call Previous call signature was deprecated. See highlightjs/highlight.js#2277 Signed-off-by: Clark Fischer <[email protected]> Signed-off-by: Clark Fischer <[email protected]>
su-ex
added a commit
to SchildiChat/matrix-react-sdk
that referenced
this issue
Feb 1, 2023
* Quotes for rte ([\matrix-org#9932](matrix-org#9932)). Contributed by @alunturner. * Show the room name in the room header during calls ([\matrix-org#9942](matrix-org#9942)). Fixes element-hq/element-web#24268. * Add code blocks to rich text editor ([\matrix-org#9921](matrix-org#9921)). Contributed by @alunturner. * Add new style for inline code ([\matrix-org#9936](matrix-org#9936)). Contributed by @florianduros. * Add disabled button state to rich text editor ([\matrix-org#9930](matrix-org#9930)). Contributed by @alunturner. * Change the rageshake "app" for auto-rageshakes ([\matrix-org#9909](matrix-org#9909)). * Device manager - tweak settings display ([\matrix-org#9905](matrix-org#9905)). Contributed by @kerryarchibald. * Add list functionality to rich text editor ([\matrix-org#9871](matrix-org#9871)). Contributed by @alunturner. * Fix RTE focus behaviour in threads ([\matrix-org#9969](matrix-org#9969)). Fixes element-hq/element-web#23755. Contributed by @florianduros. * #22204 Issue: Centered File info in lightbox ([\matrix-org#9971](matrix-org#9971)). Fixes element-hq/element-web#22204. Contributed by @Spartan09. * Fix seekbar position for zero length audio ([\matrix-org#9949](matrix-org#9949)). Fixes element-hq/element-web#24248. * Allow thread panel to be closed after being opened from notification ([\matrix-org#9937](matrix-org#9937)). Fixes element-hq/element-web#23764 element-hq/element-web#23852 and element-hq/element-web#24213. Contributed by @justjanne. * Only highlight focused menu item if focus is supposed to be visible ([\matrix-org#9945](matrix-org#9945)). Fixes element-hq/element-web#23582. * Prevent call durations from breaking onto multiple lines ([\matrix-org#9944](matrix-org#9944)). * Tweak call lobby buttons to more closely match designs ([\matrix-org#9943](matrix-org#9943)). * Do not show a broadcast as live immediately after the recording has stopped ([\matrix-org#9947](matrix-org#9947)). Fixes element-hq/element-web#24233. * Clear the RTE before sending a message ([\matrix-org#9948](matrix-org#9948)). Contributed by @florianduros. * Fix {enter} press in RTE ([\matrix-org#9927](matrix-org#9927)). Contributed by @florianduros. * Fix the problem that the password reset email has to be confirmed twice ([\matrix-org#9926](matrix-org#9926)). Fixes element-hq/element-web#24226. * replace .at() with array.length-1 ([\matrix-org#9933](matrix-org#9933)). Fixes matrix-org/element-web-rageshakes#19281. * Fix broken threads list timestamp layout ([\matrix-org#9922](matrix-org#9922)). Fixes element-hq/element-web#24243 and element-hq/element-web#24191. Contributed by @justjanne. * Disable multiple messages when {enter} is pressed multiple times ([\matrix-org#9929](matrix-org#9929)). Fixes element-hq/element-web#24249. Contributed by @florianduros. * Fix logout devices when resetting the password ([\matrix-org#9925](matrix-org#9925)). Fixes element-hq/element-web#24228. * Fix: Poll replies overflow when not enough space ([\matrix-org#9924](matrix-org#9924)). Fixes element-hq/element-web#24227. Contributed by @kerryarchibald. * State event updates are not forwarded to the widget from invitation room ([\matrix-org#9802](matrix-org#9802)). Contributed by @maheichyk. * Fix error when viewing source of redacted events ([\matrix-org#9914](matrix-org#9914)). Fixes element-hq/element-web#24165. Contributed by @clarkf. * Replace outdated css attribute ([\matrix-org#9912](matrix-org#9912)). Fixes element-hq/element-web#24218. Contributed by @justjanne. * Clear isLogin theme override when user is no longer viewing login screens ([\matrix-org#9911](matrix-org#9911)). Fixes element-hq/element-web#23893. * Fix reply action in message context menu notif & file panels ([\matrix-org#9895](matrix-org#9895)). Fixes element-hq/element-web#23970. * Fix issue where thread dropdown would not show up correctly ([\matrix-org#9872](matrix-org#9872)). Fixes element-hq/element-web#24040. Contributed by @justjanne. * Fix unexpected composer growing ([\matrix-org#9889](matrix-org#9889)). Contributed by @florianduros. * Fix misaligned timestamps for thread roots which are emotes ([\matrix-org#9875](matrix-org#9875)). Fixes element-hq/element-web#23897. Contributed by @justjanne.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Redaction
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Tolerable
Low/no impact on users
T-Defect
Steps to reproduce
Outcome
What did you expect?
The "View Source" dialog should show up.
What happened instead?
Nothing happens, and the DevTools console spits out "TypeError: e is undefined".
Operating system
No response
Browser information
No response
URL for webapp
No response
Application version
Element version: 1.11.17, Olm version: 3.2.12
Homeserver
No response
Will you send logs?
Yes
The text was updated successfully, but these errors were encountered: