Page MenuHomePhabricator

D10650.id35776.diff
No OneTemporary

D10650.id35776.diff

diff --git a/lib/reducers/entry-reducer.js b/lib/reducers/entry-reducer.js
--- a/lib/reducers/entry-reducer.js
+++ b/lib/reducers/entry-reducer.js
@@ -63,6 +63,7 @@
} from '../types/update-types.js';
import { dateString } from '../utils/date-utils.js';
import { values } from '../utils/objects.js';
+import { usingCommServicesAccessToken } from '../utils/services-utils.js';
function daysToEntriesFromEntryInfos(
entryInfos: $ReadOnlyArray<RawEntryInfo>,
@@ -177,11 +178,15 @@
const newEntryInfos = _pickBy(
(entry: RawEntryInfo) => authorizedThreadInfos[entry.threadID],
)(entryInfos);
- const newLastUserInteractionCalendar =
+ let newLastUserInteractionCalendar = lastUserInteractionCalendar;
+ if (
action.type === logOutActionTypes.success ||
- action.type === deleteKeyserverAccountActionTypes.success
- ? 0
- : lastUserInteractionCalendar;
+ (action.type === deleteKeyserverAccountActionTypes.success &&
+ !usingCommServicesAccessToken)
+ ) {
+ newLastUserInteractionCalendar = 0;
+ }
+
if (Object.keys(newEntryInfos).length === Object.keys(entryInfos).length) {
return [
{

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 1:26 PM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2601108
Default Alt Text
D10650.id35776.diff (1 KB)

Event Timeline