android, desktop: update message successfully if it's the same (#5404)

This commit is contained in:
Stanislav Dmitrenko
2024-12-22 23:22:36 +07:00
committed by GitHub
parent 3fead10ea2
commit 9c87b8782c

View File

@@ -968,6 +968,7 @@ object ChatController {
val r = sendCmd(rh, CC.ApiUpdateChatItem(type, id, itemId, mc, live))
when {
r is CR.ChatItemUpdated -> return r.chatItem
r is CR.ChatItemNotChanged -> return r.chatItem
r is CR.ChatCmdError && r.chatError is ChatError.ChatErrorStore && r.chatError.storeError is StoreError.LargeMsg -> {
AlertManager.shared.showAlertMsg(
generalGetString(MR.strings.maximum_message_size_title),