Skip to content

Commit

Permalink
Do not send the generated enum type as input
Browse files Browse the repository at this point in the history
  • Loading branch information
StylianosGakis committed Apr 10, 2024
1 parent 3aa913e commit a91cfe7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,12 @@ private fun String.isGifUrl(): Boolean {

private val webUrlLinkMatcher: Regex = Patterns.WEB_URL.toRegex()

private fun AppDestination.Chat.ChatContext.toChatMessageContext(): ChatMessageContext {
private fun AppDestination.Chat.ChatContext.toChatMessageContext(): ChatMessageContext? {
return when (this) {
AppDestination.Chat.ChatContext.PAYMENT -> ChatMessageContext.HELP_CENTER_PAYMENTS
AppDestination.Chat.ChatContext.CLAIMS -> ChatMessageContext.HELP_CENTER_CLAIMS
AppDestination.Chat.ChatContext.COVERAGE -> ChatMessageContext.HELP_CENTER_COVERAGE
AppDestination.Chat.ChatContext.INSURANCE -> ChatMessageContext.HELP_CENTER_MY_INSURANCE
AppDestination.Chat.ChatContext.OTHER -> ChatMessageContext.UNKNOWN__
AppDestination.Chat.ChatContext.OTHER -> null
}
}

0 comments on commit a91cfe7

Please sign in to comment.