HomePhabricator
Diffusion Comm 5361aca8bd01

[native] Lift selectionState in chat input bar

Description

[native] Lift selectionState in chat input bar

Summary:
In order to use a hook that will get user mention candidates that are resolved, we need to first extract the logic to compute user chat mention candidates outside of the class component. There are two steps to this:

  1. Lift the selectionState out of the class component
  2. Move the computation logic out of the class component

This diff just covers step 1, and the following diff will cover the next step.

Addresses https://linear.app/comm/issue/ENG-6112/update-native-chat-input-bar-to-make-it-easier-to-use-hooks

Test Plan: Ran the app and did some testing with @ mentioning to confirm there were no visibile regressions. Also did some logging to make sure the @ mention suggestions were the same as before

Reviewers: atul, ginsu, inka

Reviewed By: ginsu

Subscribers: ashoat, tomek

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

Details

Provenance
rohanAuthored on Dec 15 2023, 10:01 PM
Reviewer
ginsu
Differential Revision
D10385: [native] Lift selectionState in chat input bar
Parents
rCOMM8f1aafa9a6b4: [web][keyserver] codeVersion -> 57
Branches
Unknown
Tags
Unknown