Skip to content

Commit a772476

Browse files
committed
avoid null cast to ShowKeyboard in chat input
1 parent a640628 commit a772476

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

presentation/src/main/java/org/monogram/presentation/features/chats/currentChat/components/inputbar/ChatInputBarComposerSection.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,9 @@ fun ChatInputBarComposerSection(
293293
enter = expandVertically() + fadeIn(),
294294
exit = shrinkVertically() + fadeOut()
295295
) {
296+
val markup = replyMarkup as? ReplyMarkupModel.ShowKeyboard ?: return@AnimatedVisibility
296297
KeyboardMarkupView(
297-
markup = replyMarkup as ReplyMarkupModel.ShowKeyboard,
298+
markup = markup,
298299
onButtonClick = onReplyMarkupButtonClick,
299300
onOpenMiniApp = onOpenMiniApp
300301
)

0 commit comments

Comments
 (0)