Skip to content

Commit f12e3a2

Browse files
authored
Merge pull request #22 from ht-jo/master
Isolate getUserProfile method from login process
2 parents dcbdfe3 + 09ac434 commit f12e3a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ios/LineLoginManager.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,7 @@ - (void)loginWithPermissions:(NSArray *)permissions
9797
{
9898
LineSDKLogin *shared = [LineSDKLogin sharedInstance];
9999

100-
if ([shared isAuthorized])
101-
{
102-
[self getUserProfile:loginResolver
103-
rejecter:loginRejecter];
104-
} else if ([shared canLoginWithLineApp])
100+
if ([shared canLoginWithLineApp])
105101
{
106102
if (permissions && [permissions count] > 0) {
107103
[shared startLoginWithPermissions:permissions];

0 commit comments

Comments
 (0)