Skip to content

Commit

Permalink
fix: Install events records for new users Edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansi-mParticle committed Dec 16, 2024
1 parent b0c0fdb commit 0943208
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 0943208

Please sign in to comment.