Skip to content

Commit

Permalink
Fix issue ChatSecure#267
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchiles authored and chrisballinger committed Dec 12, 2014
1 parent 4e8b9b1 commit 1ff1fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChatSecure/Classes/Controllers/XMPP/OTRXMPPManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ - (void)refreshStreamJID:(NSString *)myJID withPassword:(NSString *)myPassword
- (void)authenticateWithStream:(XMPPStream *)stream {
NSError * error = nil;
BOOL status = YES;
if ([stream supportsXFacebookPlatformAuthentication]) {
if ([stream supportsXFacebookPlatformAuthentication] && self.account.accountType == OTRAccountTypeFacebook) {
status = [stream authenticateWithFacebookAccessToken:self.password error:&error];
}
else if ([stream supportsXOAuth2GoogleAuthentication] && self.account.accountType == OTRAccountTypeGoogleTalk) {
Expand Down

0 comments on commit 1ff1fb4

Please sign in to comment.