Skip to content

Commit

Permalink
Make sure to not warn about PLAIN, SASL2 on prosody isn't released yet
Browse files Browse the repository at this point in the history
Fixes #1199
  • Loading branch information
tmolitor-stud-tu committed Aug 17, 2024
1 parent 5abfafa commit b3b8f08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Monal/Classes/MLXMPPManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,9 @@ -(NSNumber*) login:(NSString*) jid password:(NSString*) password
//when logging in using another device afterwards
//TODO: to be removed once yax.im and quicksy.im supports SASL2 and SSDP!!
//TODO: use preload list and allow PLAIN for all others once enough domains are on this list
[dic setObject:([domain isEqualToString:@"yax.im"] || [domain isEqualToString:@"quicksy.im"] ? @YES : @NO) forKey:kPlainActivated];
//allow plain for all servers not on preload list, since prosody with SASL2 wasn't even released yet
NSNumber* defaultPlainActivated = @YES;
[dic setObject:([domain isEqualToString:@"yax.im"] || [domain isEqualToString:@"quicksy.im"] ? @YES : defaultPlainActivated) forKey:kPlainActivated];

NSNumber* accountNo = [[DataLayer sharedInstance] addAccountWithDictionary:dic];
if(accountNo == nil)
Expand Down

0 comments on commit b3b8f08

Please sign in to comment.