Page MenuHomePhabricator

[lib] reduce thread updates from createOrUpdateFarcasterChannelTag and deleteFarcasterChannelTag
ClosedPublic

Authored by varun on Thu, Oct 24, 12:37 PM.
Tags
None
Referenced Files
F3343550: D13788.id45381.diff
Fri, Nov 22, 3:08 AM
F3343200: D13788.id45385.diff
Fri, Nov 22, 2:45 AM
F3339576: D13788.diff
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
Unknown Object (File)
Thu, Nov 14, 2:54 PM
Unknown Object (File)
Thu, Nov 14, 2:48 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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

remove unnecessary import

varun requested review of this revision.Thu, Oct 24, 1:07 PM
ashoat requested changes to this revision.Thu, Oct 24, 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.Thu, Oct 24, 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.Fri, Oct 25, 9:49 AM