EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

chore/Fix: Ensure members list updates simultaneously when a new member is added

Open smritidoneria opened this issue 1 year ago • 4 comments

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.

smritidoneria avatar Jan 10 '25 14:01 smritidoneria

Hey @smritidoneria Can you pls explain a bit on how you are fixing it ?

Spiral-Memory avatar Jan 11 '25 11:01 Spiral-Memory

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,

smritidoneria avatar Jan 12 '25 06:01 smritidoneria

image Hi @smritidoneria Getting this error on deployment

Spiral-Memory avatar Jan 30 '25 18:01 Spiral-Memory

fixed the error @Spiral-Memory .

smritidoneria avatar Feb 03 '25 12:02 smritidoneria