Skip to content

Commit 2180e8c

Browse files
authored
When switching userId use old one in request (#525)
1 parent 60756ad commit 2180e8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AndroidSDKCore/src/main/java/com/leanplum/Leanplum.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,7 @@ public static void setUserAttributes(final String userId, Map<String, ?> userAtt
14991499
try {
15001500
final HashMap<String, Object> params = new HashMap<>();
15011501
if (userId != null) {
1502+
params.put(Constants.Params.USER_ID, getUserId());
15021503
params.put(Constants.Params.NEW_USER_ID, userId);
15031504
}
15041505
if (userAttributes != null) {

0 commit comments

Comments
 (0)