Open HarshNarayanJha opened 4 hours ago
I am already working on this. It's only incompletely implemented, not incorrectly implemented since the current functionality is also needed. However, you can work on it. Just know that I am also working on it.
The frontend just marks a message as read if the chat window is scrolled enough to the bottom.
We should use something like
window.onblur
andwindow.onfocus
ordocument.onvisibilitychange
events to actually mark the message as read (or the UserActivation API) Along with the scrollBottom implementation.