Update wysiwyg to v2.37.7 (#3218)
* Update wysiwyg to v2.37.7 * Fix API breaks --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
parent
8a2335f7aa
commit
f2378ca6ea
2 changed files with 10 additions and 8 deletions
|
|
@ -44,7 +44,7 @@ serialization_json = "1.6.3"
|
||||||
showkase = "1.0.3"
|
showkase = "1.0.3"
|
||||||
appyx = "1.4.0"
|
appyx = "1.4.0"
|
||||||
sqldelight = "2.0.2"
|
sqldelight = "2.0.2"
|
||||||
wysiwyg = "2.37.5"
|
wysiwyg = "2.37.7"
|
||||||
telephoto = "0.12.0"
|
telephoto = "0.12.0"
|
||||||
|
|
||||||
# DI
|
# DI
|
||||||
|
|
|
||||||
|
|
@ -33,17 +33,19 @@ data class Suggestion(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class SuggestionType {
|
sealed interface SuggestionType {
|
||||||
Mention,
|
data object Mention : SuggestionType
|
||||||
Command,
|
data object Command : SuggestionType
|
||||||
Room;
|
data object Room : SuggestionType
|
||||||
|
data class Custom(val pattern: String) : SuggestionType
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun fromPatternKey(key: PatternKey): SuggestionType {
|
fun fromPatternKey(key: PatternKey): SuggestionType {
|
||||||
return when (key) {
|
return when (key) {
|
||||||
PatternKey.AT -> Mention
|
PatternKey.At -> Mention
|
||||||
PatternKey.SLASH -> Command
|
PatternKey.Slash -> Command
|
||||||
PatternKey.HASH -> Room
|
PatternKey.Hash -> Room
|
||||||
|
is PatternKey.Custom -> Custom(key.v1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue