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>
This commit is contained in:
parent
dcf2a3c6e1
commit
1f9fc9bda7
1 changed files with 1 additions and 1 deletions
|
|
@ -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"];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue