mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 15:03:16 +00:00
Merge branch 'master' into group-knocking
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -967,7 +967,7 @@ object ChatController {
|
||||
|
||||
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))
|
||||
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user