Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0817f73 authored by Andy Scherzinger's avatar Andy Scherzinger Committed by GitHub
Browse files

Merge pull request #87 from nextcloud/fix-a-typo-users

Fix a typo
parents 803dd533 8b9ea384
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ public class GetRemoteUserInfoOperation extends RemoteOperation {

        String url = "";

        if (!versionWithSelfAPI && TextUtils.isEmpty(userID)) {
        if (!versionWithSelfAPI && !TextUtils.isEmpty(userID)) {
            url = client.getBaseUri() + OCS_ROUTE_SEARCH + userID;
        } else {
            url = client.getBaseUri() + OCS_ROUTE_SELF;
@@ -150,7 +150,11 @@ public class GetRemoteUserInfoOperation extends RemoteOperation {
                if (respData.has(NODE_ID)) {
                    userInfo.setId(respData.getString(NODE_ID));
                } else {
                    if (TextUtils.isEmpty(userID)) {
                        userInfo.setId(credentials.getUsername());
                    } else {
                        userInfo.setId(userID);
                    }
                }

                // Two endpoints, two different responses