HomePhabricator
Diffusion Comm b1e1966377ee

[lib] Disconnect FID when another device disconnects it

Description

[lib] Disconnect FID when another device disconnects it

Summary:
This addresses ENG-9684.

Depends on D13715

Test Plan:

  1. I started with a test account that has been connected to an FID on staging
  2. I opened up a mobile app and a web app logged in as this user
  3. I disconnected the FID on mobile
  4. I refreshed the web app. Prior to these changes, refreshing would not cause the FID to be disconnected on web. After these changes, it does. I was able to check if the FID was connected by seeing if the “Tag Farcaster channel” option appeared for a community that the user is an admin of
  5. On mobile, I then reconnected the FID on staging following these instructions
  6. After reconnecting on mobile, I refreshed the web app and confirmed that the FID was reconnected on web too
  7. Then I added an artificial delay to the findUserIdentities RPC to force a timeout. I refreshed the web app and confirmed that the FID was *not* disconnected

Reviewers: will, varun

Reviewed By: will

Subscribers: tomek

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

Details

Provenance
ashoatAuthored on Oct 15 2024, 10:49 AM
Reviewer
will
Differential Revision
D13716: [lib] Disconnect FID when another device disconnects it
Parents
rCOMMeb8ba0adac2f: [lib] Return null for successful fetch with no result in UserIdentityCache
Branches
Unknown
Tags
Unknown