Skip to content

Commit 1d28cb5

Browse files
authored
Merge pull request #5438 from nextcloud/backport/5437/stable-22.0
[stable-22.0] fix NumberFormatException in getContextForChatMessages
2 parents 31b9eeb + af80e6b commit 1d28cb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/nextcloud/talk/contextchat/ContextChatViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ContextChatViewModel @Inject constructor(private val chatNetworkDataSource
6060
token = token,
6161
messageId = messageId,
6262
limit = LIMIT,
63-
threadId = threadId?.toInt()
63+
threadId = threadId?.toIntOrNull()
6464
)
6565

6666
if (threadId.isNullOrEmpty()) {

0 commit comments

Comments
 (0)