mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 20:29:53 +00:00
android, desktop: fix sending reports
This commit is contained in:
parent
9b4908c370
commit
dc35e5f765
1 changed files with 1 additions and 1 deletions
|
@ -964,7 +964,7 @@ object ChatController {
|
||||||
|
|
||||||
suspend fun apiReportMessage(rh: Long?, groupId: Long, chatItemId: Long, reportReason: ReportReason, reportText: String): List<AChatItem>? {
|
suspend fun apiReportMessage(rh: Long?, groupId: Long, chatItemId: Long, reportReason: ReportReason, reportText: String): List<AChatItem>? {
|
||||||
val r = sendCmd(rh, CC.ApiReportMessage(groupId, chatItemId, reportReason, reportText))
|
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)
|
apiErrorAlert("apiReportMessage", generalGetString(MR.strings.error_creating_report), r)
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue