Pranavmaid / chatview2

MIT License
6 stars 5 forks source link

Chat controller #6

Open appsbykoketso opened 8 months ago

appsbykoketso commented 8 months ago

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 commented 8 months ago

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