chore/Fix: Ensure members list updates simultaneously when a new member is added
Brief Title
This pull request addresses the issue where the members list does not update simultaneously when a new member is added. The solution involves ensuring that the members list is fetched and updated in real-time when the component mounts and when relevant events occur.
Fixes #864
Video/Screenshots
https://github.com/user-attachments/assets/066f3a89-2d0e-4a7d-820f-a42e83cb261e
PR Test Details
Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval. Contributors are requested to replace <pr_number> with the actual PR number.
Hey @smritidoneria Can you pls explain a bit on how you are fixing it ?
The useFetchchatdata hook defined the getchannelmember function which fetches the list of channel members and updates the state.
the use effect hook in the component calls getChannelMember when the component mounts,ensuring memeberlist is fetched and updated,
Hi @smritidoneria
Getting this error on deployment
fixed the error @Spiral-Memory .