-
Notifications
You must be signed in to change notification settings - Fork 751
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
Bump io.element.android:wysiwyg from 2.14.1 to 2.22.0 #8711
Bump io.element.android:wysiwyg from 2.14.1 to 2.22.0 #8711
Conversation
Bumps [io.element.android:wysiwyg](https://github.com/matrix-org/matrix-wysiwyg) from 2.14.1 to 2.22.0. - [Changelog](https://github.com/matrix-org/matrix-rich-text-editor/blob/main/CHANGELOG.md) - [Commits](matrix-org/matrix-rich-text-editor@2.14.1...2.22.0) --- updated-dependencies: - dependency-name: io.element.android:wysiwyg dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
This should fix #8712 |
override fun resolveAtRoomMentionDisplay(): TextDisplay = | ||
pillDisplayHandler?.resolveAtRoomMentionDisplay() ?: TextDisplay.Plain | ||
} | ||
) |
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.
mentionDisplayHandler
is now private, so using updateStyle
with existing styleConfig
for the first parameter. There is maybe another way to set mentionDisplayHandler
?
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 right way to do it now. We did this to minimize the number of times we need to re-create the underlying HtmlToSpanConverter
, specially in Compose.
styleConfig = it.styleConfig, | ||
mentionDisplayHandler = null, | ||
) | ||
} |
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.
@jmartinesp let me know what you think about this fix.
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 a bit weird, updateStyle
should automatically be called when it's attached to a window. Are we settings the text in this component before that happens? If so, then yes, we need to add this workaround.
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.
Yes, this seems to be the case. It's alright then. Maybe in the next RTE version we can change it so it's done as soon as it's instantiated.
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.
I have put a breakpoint in EditorStyledTextView.onAttachedToWindow()
but was not reaching it before the app crashes.
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.
LGTM, thanks!
Bumps io.element.android:wysiwyg from 2.14.1 to 2.22.0.
Changelog
Sourced from io.element.android:wysiwyg's changelog.
... (truncated)
Commits
fcfef8a
Version 2.22.0 (#909)d43db0a
[Rust] fix multiple lines in markdown mode (#907)efe567d
[iOS] Key Commands Refactor (#908)91fae40
Fix enter right after mention crashing the editor (#904)a87e5e6
[Android] ImplementreplaceText
(#902)3529e0d
Merge pull request #901 from matrix-org/version-2.21.03372341
Add entry in CHANGELOG.mdc14a63e
Runmake web
61d3f59
Prepare release 2.21.01dbba97
Merge pull request #899 from matrix-org/jme/android-fix-paparazzi-testsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)