mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-14 02:35:47 +01:00
Fix crash on slash commands Exceptions
This commit is contained in:
parent
fe2ba28441
commit
364654b685
1
changelog.d/4261.bugfix
Normal file
1
changelog.d/4261.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix crash on slash commands Exceptions
|
@ -709,7 +709,7 @@ class TextComposerViewModel @AssistedInject constructor(
|
||||
val event = try {
|
||||
block()
|
||||
TextComposerViewEvents.SlashCommandResultOk
|
||||
} catch (failure: Exception) {
|
||||
} catch (failure: Throwable) {
|
||||
TextComposerViewEvents.SlashCommandResultError(failure)
|
||||
}
|
||||
_viewEvents.post(event)
|
||||
|
Loading…
Reference in New Issue
Block a user