HomePhabricator
Diffusion Comm da9fc92ba039

[lib] Delete users for whom identity didnt return a device list for a long time

Description

[lib] Delete users for whom identity didnt return a device list for a long time

Summary:
issue: ENG-9632
If we fail to fetch usres device list for a whole day, we can assume that this is not due to identity temporary data inconsistency. And if a user is a member of a DM, and their device list is not present on the identity, then we know for certain that they deleted their account.
There is only one catch here - if the request times out we shouldn't be deleting the user. Created ENG-9725 to address this

Test Plan:
Tested that a user whose device list failed to be fetched for a long time gets deleted and they get removed from threads, users store and aux user store.
Checked that a user whose lastChecked was updated does not get removed from threads and other stores

Reviewers: tomek, kamil

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13741

Details

Provenance
inkaAuthored on Oct 15 2024, 1:09 AM
Reviewer
tomek
Differential Revision
D13741: [lib] Delete users for whom identity didnt return a device list for a long time
Parents
rCOMM3522e8e1d74d: [lib] Reduce removePeerUsersActionType in thread reducer
Branches
Unknown
Tags
Unknown