From 33dcdc0cb1e21ec6fe67443814b6f58756e5564e Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 3 Oct 2025 13:53:46 +0300 Subject: [PATCH] Fix error on notification reply on iOS (#9181) (#9185) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix error on notification reply on iOS * Revert unneeded change * Apply suggestion from @Copilot --------- (cherry picked from commit 1f9fc9bda75947e372812253ffb380f4e19bad35) Co-authored-by: Daniel Espino GarcĂ­a Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Extensions/RNNotificationEventHandler+HandleReplyAction.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Mattermost/Extensions/RNNotificationEventHandler+HandleReplyAction.m b/ios/Mattermost/Extensions/RNNotificationEventHandler+HandleReplyAction.m index 83a927ea0..00d14156f 100644 --- a/ios/Mattermost/Extensions/RNNotificationEventHandler+HandleReplyAction.m +++ b/ios/Mattermost/Extensions/RNNotificationEventHandler+HandleReplyAction.m @@ -99,7 +99,7 @@ static SendReplyCompletionHandlerIMP originalSendReplyCompletionHandlerImplement [request setValue:@"application/json; charset=utf-8" forHTTPHeaderField:@"Content-Type"]; // Add preauth secret header if available - if (preauthSecret != nil && ![preauthSecret isEqualToString:@""]) { + if ([preauthSecret isKindOfClass:NSString.class] && [(NSString *)preauthSecret length] > 0) { [request setValue:preauthSecret forHTTPHeaderField:@"X-Mattermost-Preauth-Secret"]; }