Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat controller #6

Open
appsbykoketso opened this issue Jan 23, 2024 · 1 comment
Open

Chat controller #6

appsbykoketso opened this issue Jan 23, 2024 · 1 comment

Comments

@appsbykoketso
Copy link

final chatController = ChatController(
initialMessageList: messageList,
scrollController: ScrollController(),
chatUsers: [ChatUser(id: '2', name: 'Simform')],
);

When creating a controller, we need to pass a list of all users in advance,

The issue I ran into is that, I don't have a list of users in advance.

My App has a real time chat room feature. A new user can join the chatroom at anytime.

If people are already in the chatroom, they will not have the new people who just entered the chatroom. Because the controller is already created.

Is there a way to update the controller with new people who just joined the chat?

Or perhaps, we remove list of users from the controller and we manually get those from list of messages.

I am streaming the data from firebase RTDB

@appsbykoketso
Copy link
Author

Maybe in the chat controller - can we rather add the person who is logged in, instead of adding a list of all users in the chatroom.

I am trying to migrate from the package below to this one. Since this one has a ton of features that I like.

flutter_chat_ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant