Comments (2)
Fixed by saving state using onParticipantChatOpened and onParticipantChatClosed.
The problem was that I send a WebSocket message and save history to database within sendMessage and I call onMessageRecieved after I receive the WebSocket message.
Now I use a DataSharing service to maintain participant state and only call triggerOpenChatWindow when chat window is closed. Only call onMessageRecieved when chat window is open.
Seems to be working fine.
from ng-chat.
This only happens when the chat window has not been opened yet.
from ng-chat.
Related Issues (20)
- How to customize chat window like shown in attached image HOT 1
- Problem with creating a group programatically HOT 1
- Firebase Implementation HOT 1
- How to translate the label "Add People" HOT 1
- Html tag does not show up!!! HOT 2
- onMessageReceived HOT 2
- Download a file
- ng build error HOT 2
- Pagination method not calling on scroll up. HOT 1
- Add icons to show message status HOT 1
- Paged Friend List Component HOT 1
- Question Asp.Net Web API 2 HOT 1
- @aspnet/signalr deprecated HOT 1
- dark theme HOT 1
- Test if Participant chat window is open. HOT 4
- how to delete a friend from your chat list ? HOT 1
- How to refresh conversation? HOT 1
- ChatController doesn't get instantiated HOT 1
- Please publish and Ivy Distribution HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-chat.