Skip to content

Commit

Permalink
SASL2: Update ressource if set in authorization-identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichAltheide committed Mar 22, 2024
1 parent e768ca8 commit 9cf7c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Monal/Classes/xmpp.m
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,7 @@ -(void) processInput:(MLXMLNode*) parsedStanza withDelayedReplay:(BOOL) delayedR
NSString* authid = [parsedStanza findFirst:@"authorization-identifier#"];
NSDictionary* authidParts = [HelperTools splitJid:authid];
self.connectionProperties.identity.jid = authidParts[@"user"];
if(authidParts[@"user"] != nil)
if(authidParts[@"resource"] != nil)
self.connectionProperties.identity.resource = authidParts[@"resource"];

//record SDDP support
Expand Down

0 comments on commit 9cf7c49

Please sign in to comment.