Is it possible to show the old messages in chat window like facebook does. This is important because when refreshing the page unread messages are lost.
Is it possible to show the old messages in chat window like facebook does. This is important because when refreshing the page unread messages are lost.
Comments
Comment #1
rgnyldz commentedSo, not possible ?
Comment #2
rgnyldz commentedAt least an answer would be nice !
Comment #3
darklrd commentedYes, this needs to be developed.
Thanks!
Comment #4
darklrd commentedMarked #2319481: chat history lost on navigation as duplicate of this issue. Thanks.
Comment #5
oneblankspace commentedComment #6
ey commentedThis functionality was once there. It is somehow lost with recent updates, but I don't know exactly by which update. So this is not a feature request, but a bug report. It is also a major issue since the messages are lost, and the users have no obvious way to know if someone wrote to them and what they wrote at all, which makes this module simply useless.
I know that also in the past the chat window kept the chat history for the active session at least, and open chat windows stayed also opened. Now all active chats are also being closed if the user navigates to another page or simply refreshes the page.
Comment #7
ey commentedI've just rolled back one by one each releases and found that the latest version where the chat history still kept was drupalchat 7.x-1.0-beta33
If you install drupalchat 7.x-1.0-beta33, you'll see that it works. So this bug is introduced on drupalchat 7.x-1.0
I'll take a look and try to find which commit exactly is responsible.
Comment #8
ey commentedI've found the commit that breaks the things:
This is a very big commit which makes it very hard to debug. @darklrd would you please take a closer look at your commit, maybe you can find it quickly why it breaks the chat history staying alive?
Thanks.
Comment #9
pendaco commentedAgreed with pc-wurm
Comment #10
ey commentedFor those who want to install the older version (7.x-1.0-beta33), which is working better, install from the following url:
https://www.drupal.org/node/2275587
Comment #11
webadpro commentedHello,
Is this caused only when using AJAX or even with node.js?
Thanks
Comment #12
darklrd commentedEarlier cookies were being used to persist chat messages in the window but this is not a good solution security wise. Hence this has been removed in stable release. A new workflow needs to be designed to get old messages from website server on page load. This may take time to be implemented.
Comment #14
darklrd commented