Skip to content

Commit f7cce92

Browse files
authored
Merge pull request #837 from Iterable/evan/MOB-10137
[MOB-10137] clears locally stored data when replay is false
2 parents 3a1f41a + 2a22ebd commit f7cce92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/AnonymousUserManager.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ void syncEventsAndUserUpdate() {
283283
} catch (JSONException e) {
284284
IterableLogger.d(TAG, "Handle User Update Failure");
285285
}
286-
287-
clearVisitorEventsAndUserData();
288286
}
289287

290288
private void handleTrackEvent(JSONObject event) throws JSONException {

iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,8 @@ private void attemptMergeAndEventReplay(@Nullable String emailOrUserId, boolean
886886
if (!isAnon) {
887887
_userIdAnon = null;
888888
}
889+
890+
anonymousUserManager.clearVisitorEventsAndUserData();
889891
}
890892
}
891893

0 commit comments

Comments
 (0)