diff --git a/changelog.d/4261.bugfix b/changelog.d/4261.bugfix new file mode 100644 index 00000000000..42833351313 --- /dev/null +++ b/changelog.d/4261.bugfix @@ -0,0 +1 @@ +Fix crash on slash commands Exceptions \ No newline at end of file diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerViewModel.kt index 08f44f30f72..73b400e8d5f 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/TextComposerViewModel.kt @@ -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)