Page MenuHomePhabricator

[lib] reduce thread updates from createOrUpdateFarcasterChannelTag and deleteFarcasterChannelTag
ClosedPublic

Authored by varun on Oct 24 2024, 12:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 5:38 AM
Unknown Object (File)
Fri, Nov 22, 3:23 AM
Unknown Object (File)
Fri, Nov 22, 3:08 AM
Unknown Object (File)
Fri, Nov 22, 2:45 AM
Unknown Object (File)
Thu, Nov 21, 8:12 PM
Unknown Object (File)
Wed, Nov 20, 3:09 PM
Unknown Object (File)
Fri, Nov 15, 12:01 AM
Unknown Object (File)
Thu, Nov 14, 3:01 PM
Subscribers

Details

Summary

Depends on D13779

Test Plan

tested setting and unsetting community tags from a client running an older code version and it worked as expected -- no crashes, communities and threads tables updated on keyserver. eventually the state check mechanism synced the client threads with the keyserver

tested the same thing on a new client that can receive the thread changes directly and confirmed that the actions were reduced correctly and the redux state thread info looked right

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

remove unnecessary import

varun requested review of this revision.Oct 24 2024, 1:07 PM
ashoat requested changes to this revision.Oct 24 2024, 2:51 PM

I looked at the type of ChangeThreadSettingsResult. It has two properties, one of which is newMessageInfos.

It looks like some of the other action types (eg. deleteCommunityRoleActionTypes.success) aren't reduced in message-reducer.js either. Is there a specific reason we aren't reducing the messages here?

lib/reducers/thread-reducer.js
275–281 ↗(On Diff #45382)

Don't think we need this after the type updates I suggest in prior diffs

This revision now requires changes to proceed.Oct 24 2024, 2:51 PM

we do want to reduce the messages too

lib/reducers/thread-reducer.js
275–281 ↗(On Diff #45382)

we do need this. in my latest comments on D13778 i explain why

https://phab.comm.dev/D13778#inline-77986

This revision is now accepted and ready to land.Oct 25 2024, 9:49 AM