-
-
Notifications
You must be signed in to change notification settings - Fork 827
Change ref handling in TextualBody to prevent it parsing generated nodes #3711
Conversation
Remove unused paths Signed-off-by: Michael Telatynski <[email protected]>
….com:matrix-org/matrix-react-sdk into t3chguy/clean_up_TextualBody � Conflicts: � src/components/views/messages/TextualBody.js
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
Signed-off-by: Michael Telatynski <[email protected]>
@@ -261,7 +261,7 @@ const Pill = createReactClass({ | |||
} | |||
|
|||
const classes = classNames("mx_Pill", pillClass, { | |||
"mx_UserPill_me": userId === MatrixClientPeg.get().credentials.userId, | |||
"mx_UserPill_me": userId === MatrixClientPeg.get().getUserId(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the second unrelated change in this PR - please try to keep these out for future PRs. Personally I don't mind having one vaguely related thing in the PR, but after a couple it starts to feel like false advertising on the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is not unrelated, it was to simplify stubbing for the test, any and all changes in this PR are related either to the change or testing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
things like this should be pointed out so tired eyes don't miss them :(
Co-Authored-By: Travis Ralston <[email protected]>
….com:matrix-org/matrix-react-sdk into t3chguy/clean_up_TextualBody � Conflicts: � yarn.lock
Signed-off-by: Michael Telatynski <[email protected]>
Fixes element-hq/element-web#11627
Instead of passing in the entire event span and only looking at its children, only look at the event body and that way we don't end up re-parsing the url previews we created already (when an event edit comes in to update the same tile)
Removes unused paths for getInnerText
Needs further testing around:
I will write unit tests to support this.
Signed-off-by: Michael Telatynski [email protected]