flyerhq / flutter_firebase_chat_core

Actively maintained, community-driven Firebase BaaS for chat applications with an optional chat UI.
https://flyer.chat
Apache License 2.0
257 stars 208 forks source link

Chat application hangs once we continuously send messages #103

Open swarupa-v opened 1 year ago

swarupa-v commented 1 year ago

Hello,

We were developing chat application using flyer chat with firebase. We are facing an issue when sending a new messages when there are many messages present in the chat thread. We are using stream-builder to display real time messages. As soon as we send the message, stream builder loads the messages again and it leads to memory leak. Eventually it leads to screen freezing due to memory leak. This happens when we keep sending messages continuously.

demchenkoalex commented 1 year ago

Hello! Currently I don't have much time to work on open source, you can help me debug and open a PR, thanks

swarupacs commented 1 year ago

When we call this function FirebaseChatCore.instance.sendMessage it slows down may be because all messages are fetched again.