mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
fix(deps): update wysiwyg to v2.40.0 (#5400)
* fix(deps): update wysiwyg to v2.40.0 * Fix API mismatches --------- 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:
+1
@@ -69,6 +69,7 @@ class SuggestionsProcessor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
SuggestionType.Command,
|
SuggestionType.Command,
|
||||||
|
SuggestionType.Emoji,
|
||||||
is SuggestionType.Custom -> {
|
is SuggestionType.Custom -> {
|
||||||
// Clear suggestions
|
// Clear suggestions
|
||||||
emptyList()
|
emptyList()
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ coil = "3.3.0"
|
|||||||
showkase = "1.0.5"
|
showkase = "1.0.5"
|
||||||
appyx = "1.7.1"
|
appyx = "1.7.1"
|
||||||
sqldelight = "2.1.0"
|
sqldelight = "2.1.0"
|
||||||
wysiwyg = "2.39.0"
|
wysiwyg = "2.40.0"
|
||||||
telephoto = "0.18.0"
|
telephoto = "0.18.0"
|
||||||
haze = "1.6.10"
|
haze = "1.6.10"
|
||||||
|
|
||||||
|
|||||||
+1
@@ -167,6 +167,7 @@ private fun Editable.checkSuggestionNeeded(): Suggestion? {
|
|||||||
'@' -> SuggestionType.Mention
|
'@' -> SuggestionType.Mention
|
||||||
'#' -> SuggestionType.Room
|
'#' -> SuggestionType.Room
|
||||||
'/' -> SuggestionType.Command
|
'/' -> SuggestionType.Command
|
||||||
|
':' -> SuggestionType.Emoji
|
||||||
else -> error("Unknown suggestion type. This should never happen.")
|
else -> error("Unknown suggestion type. This should never happen.")
|
||||||
}
|
}
|
||||||
Suggestion(startOfWord, endOfWord, suggestionType, text)
|
Suggestion(startOfWord, endOfWord, suggestionType, text)
|
||||||
|
|||||||
+2
@@ -28,6 +28,7 @@ sealed interface SuggestionType {
|
|||||||
data object Mention : SuggestionType
|
data object Mention : SuggestionType
|
||||||
data object Command : SuggestionType
|
data object Command : SuggestionType
|
||||||
data object Room : SuggestionType
|
data object Room : SuggestionType
|
||||||
|
data object Emoji : SuggestionType
|
||||||
data class Custom(val pattern: String) : SuggestionType
|
data class Custom(val pattern: String) : SuggestionType
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@@ -36,6 +37,7 @@ sealed interface SuggestionType {
|
|||||||
PatternKey.At -> Mention
|
PatternKey.At -> Mention
|
||||||
PatternKey.Slash -> Command
|
PatternKey.Slash -> Command
|
||||||
PatternKey.Hash -> Room
|
PatternKey.Hash -> Room
|
||||||
|
PatternKey.Colon -> Emoji
|
||||||
is PatternKey.Custom -> Custom(key.v1)
|
is PatternKey.Custom -> Custom(key.v1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user