mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Fix crash on slash commands Exceptions
This commit is contained in:
parent
fe2ba28441
commit
364654b685
2 changed files with 2 additions and 1 deletions
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…
Add table
Reference in a new issue