From ad0e48ac212e6f2701bb15d20ddb79f90b3a44aa Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Thu, 19 Jun 2025 21:40:53 +0200 Subject: [PATCH] Fix parsing --- .../TelegramCore/Sources/ApiUtils/TelegramMediaAction.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCore/Sources/ApiUtils/TelegramMediaAction.swift b/submodules/TelegramCore/Sources/ApiUtils/TelegramMediaAction.swift index 86a72c0167..d0ca356ba6 100644 --- a/submodules/TelegramCore/Sources/ApiUtils/TelegramMediaAction.swift +++ b/submodules/TelegramCore/Sources/ApiUtils/TelegramMediaAction.swift @@ -232,13 +232,13 @@ func telegramMediaActionFromApiAction(_ action: Api.MessageAction) -> TelegramMe let status: TelegramMediaActionType.SuggestedPostApprovalStatus if (flags & (1 << 0)) != 0 { let reason: TelegramMediaActionType.SuggestedPostApprovalStatus.RejectionReason - if (flags & (1 << 0)) != 1 { + if (flags & (1 << 1)) != 0 { reason = .lowBalance(balanceNeeded: starsAmount ?? 0) } else { reason = .generic } status = .rejected(reason: reason, comment: rejectComment) - } else if (flags & (1 << 0)) != 1 { + } else if (flags & (1 << 1)) != 0 { status = .rejected(reason: .lowBalance(balanceNeeded: starsAmount ?? 0), comment: nil) } else { status = .approved(timestamp: scheduleDate, amount: starsAmount ?? 0)