[CommCoreModule] Update thread REPLACE_OPERATION to handle avatar
Summary:
We need to update construction of REPLACE_OPERATION to handle avatar.
After this diff avatar will be persisted in the SQLite threads table and will REHYDRATE Redux.
NOTE: I am NOT going to include a migration to handle avatars that may already be in the Redux store because there should be no avatars on prod as of this diff landing.
Test Plan:
- Set thread avatar from native.
- Observe that thread avatar is set in serverDB:
- Observe that Redux state on native is updated with avatar:
- Observe that avatar field is persisted in clientDB threads table.
- Observe that avatar is included in SET_CLIENT_DB_STORE action:
Reviewers: ashoat, ginsu
Reviewed By: ashoat
Subscribers: rohan, tomek
Differential Revision: https://phab.comm.dev/D7352