From e0d511165c46f730be6fba280d119563cb8d0a48 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Fri, 12 Sep 2025 11:02:05 +0200 Subject: [PATCH] Fix call messages --- .../TelegramCallsUI/Sources/PresentationGroupCall.swift | 4 ++-- .../Sources/TelegramEngine/Calls/GroupCalls.swift | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift b/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift index b3b34302d0..1a3ebb8d5f 100644 --- a/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift +++ b/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift @@ -2979,10 +2979,10 @@ public final class PresentationGroupCallImpl: PresentationGroupCall { } public func setIsMuted(action: PresentationGroupCallMuteAction) { - if "".isEmpty { + /*if "".isEmpty { self.messagesContext?.send(text: "test\(UInt32.random(in: 0 ... UInt32.max))", entities: []) return - } + }*/ if self.isMutedValue == action { return diff --git a/submodules/TelegramCore/Sources/TelegramEngine/Calls/GroupCalls.swift b/submodules/TelegramCore/Sources/TelegramEngine/Calls/GroupCalls.swift index b6d444c2d9..2630fe9ff7 100644 --- a/submodules/TelegramCore/Sources/TelegramEngine/Calls/GroupCalls.swift +++ b/submodules/TelegramCore/Sources/TelegramEngine/Calls/GroupCalls.swift @@ -3473,9 +3473,13 @@ public final class GroupCallMessagesContext { } switch update.update { case let .newPlaintextMessage(authorId, text, entities): - addedMessages.append((authorId, text, entities)) + if authorId != self.account.peerId { + addedMessages.append((authorId, text, entities)) + } case let .newOpaqueMessage(authorId, data): - addedOpaqueMessages.append((authorId, data)) + if authorId != self.account.peerId { + addedOpaqueMessages.append((authorId, data)) + } } }