Page MenuHomePhabricator

D10650.diff
No OneTemporary

D10650.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
@@ -38,6 +38,7 @@
keyserverAuthActionTypes,
logOutActionTypes,
deleteKeyserverAccountActionTypes,
+ deleteAccountActionTypes,
logInActionTypes,
} from '../actions/user-actions.js';
import { setNewSessionActionType } from '../keyserver-conn/keyserver-conn-types.js';
@@ -170,6 +171,7 @@
if (
action.type === logOutActionTypes.success ||
action.type === deleteKeyserverAccountActionTypes.success ||
+ action.type === deleteAccountActionTypes.success ||
action.type === deleteThreadActionTypes.success ||
action.type === leaveThreadActionTypes.success
) {
@@ -177,11 +179,14 @@
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 === deleteAccountActionTypes.success
+ ) {
+ newLastUserInteractionCalendar = 0;
+ }
+
if (Object.keys(newEntryInfos).length === Object.keys(entryInfos).length) {
return [
{

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 1:40 AM (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2587272
Default Alt Text
D10650.diff (1 KB)

Event Timeline