From 1f9fc9bda75947e372812253ffb380f4e19bad35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Fri, 3 Oct 2025 12:43:46 +0200 Subject: [PATCH] Fix error on notification reply on iOS (#9181) * Fix error on notification reply on iOS * Revert unneeded change * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- 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"]; }