Skip to content

Commit

Permalink
fix: Install events records for new users Edge case (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansi-mParticle authored Dec 17, 2024
1 parent 35860b9 commit 2f6b2bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -968,11 +968,11 @@ void setFirstRunForMessage(boolean firstRun) {
.apply();
}

boolean isFirstRunForAST() {
synchronized boolean isFirstRunForAST() {
return sPreferences.getBoolean(Constants.PrefKeys.FIRSTRUN_AST + mConfigManager.getApiKey(), true) && isFirstRunForMessageLegacy();
}

void setFirstRunForAST(boolean firstRun) {
synchronized void setFirstRunForAST(boolean firstRun) {
sPreferences.edit()
.putBoolean(Constants.PrefKeys.FIRSTRUN_AST + mConfigManager.getApiKey(), firstRun)
.remove(Constants.PrefKeys.FIRSTRUN_OBSELETE + mConfigManager.getApiKey())
Expand Down

0 comments on commit 2f6b2bc

Please sign in to comment.