From 531fbf0eeddba0b2e8f1029c467e8e8dd6bc8456 Mon Sep 17 00:00:00 2001 From: Lakr <25259084+Lakr233@users.noreply.github.com> Date: Wed, 6 Aug 2025 09:37:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=9A=91=20replace=20problematic=20a?= =?UTF-8?q?ttachment=20count=20(#13416)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary by CodeRabbit * **Bug Fixes** * Improved attachment handling in chat by updating the way attachments are counted, ensuring only files and images are included. Document attachments are no longer counted in this process. --- .../Sources/Intelligents/ChatManager/ChatManager+Stream.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/apps/ios/App/Packages/Intelligents/Sources/Intelligents/ChatManager/ChatManager+Stream.swift b/packages/frontend/apps/ios/App/Packages/Intelligents/Sources/Intelligents/ChatManager/ChatManager+Stream.swift index 464a234b2..294c2de8a 100644 --- a/packages/frontend/apps/ios/App/Packages/Intelligents/Sources/Intelligents/ChatManager/ChatManager+Stream.swift +++ b/packages/frontend/apps/ios/App/Packages/Intelligents/Sources/Intelligents/ChatManager/ChatManager+Stream.swift @@ -171,7 +171,7 @@ private extension ChatManager { ] let attachmentCount = [ editorData.fileAttachments.count, - editorData.documentAttachments.count, + editorData.imageAttachments.count, ].reduce(0, +) let attachmentFieldName = attachmentCount > 1 && attachmentCount != 0 ? "options.blobs" : "options.blob" let uploadableAttachments: [GraphQLFile] = [