Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Reset tracking reminder counter on idle detection actions (lib), closes
Browse files Browse the repository at this point in the history
… #2396
  • Loading branch information
IndrekV committed Mar 6, 2018
1 parent 91057c1 commit 2595973
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3164,6 +3164,9 @@ error Context::DiscardTimeAt(
const Poco::Int64 at,
const bool split_into_new_entry) {

// Reset reminder count when doing idle actions
last_tracking_reminder_time_ = time(0);

// Tracking action
if ("production" == environment_) {
std::stringstream ss;
Expand Down Expand Up @@ -3210,6 +3213,9 @@ TimeEntry *Context::DiscardTimeAndContinue(
const std::string guid,
const Poco::Int64 at) {

// Reset reminder count when doing idle actions
last_tracking_reminder_time_ = time(0);

// Tracking action
if ("production" == environment_) {
analytics_.TrackIdleDetectionClick(db_->AnalyticsClientID(),
Expand Down

0 comments on commit 2595973

Please sign in to comment.