From dc35e5f765acd4614f670ddb207c231af37b52f5 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Tue, 13 May 2025 18:19:22 +0100 Subject: [PATCH] android, desktop: fix sending reports --- .../commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt index 7025e4caf3..979d79c839 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/model/SimpleXAPI.kt @@ -964,7 +964,7 @@ object ChatController { suspend fun apiReportMessage(rh: Long?, groupId: Long, chatItemId: Long, reportReason: ReportReason, reportText: String): List? { val r = sendCmd(rh, CC.ApiReportMessage(groupId, chatItemId, reportReason, reportText)) - if (r is API.Result && r.res is CR.NewChatItems) r.res.chatItems + if (r is API.Result && r.res is CR.NewChatItems) return r.res.chatItems apiErrorAlert("apiReportMessage", generalGetString(MR.strings.error_creating_report), r) return null }