HomePhabricator
Diffusion Comm ded59d66ae76

[lib] SyncCommunityStoreHandler

Description

[lib] SyncCommunityStoreHandler

Summary: With the introduction of the farcasterBot, it's possible for a user to be added to a community and not have this community in their communityStore. in this scenario, the UpdateHandler should handle adding the community thread to the threadStore. the handler in this diff will check if any of the COMMUNITY_ROOT threads are missing in the communityStore. If there are missing communities, callFetchCommunityInfos is invoked

Test Plan: applied this patch and confirmed with logs that my handler was invoked. also confirmed that communityStore was immediately updated and thread avatars were immediately rendered

Reviewers: will, ashoat

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
varunAuthored on Tue, Oct 29, 3:17 PM
Reviewer
ashoat
Differential Revision
D13810: [lib] SyncCommunityStoreHandler
Parents
rCOMM9360b1f7fff5: [lib] Wait with processing inbound messages for Tunnelbroker connection
Branches
Unknown
Tags
Unknown