getkaiwa / kaiwa

[UNMAINTAINED] A modern XMPP Web client
http://getkaiwa.com
MIT License
1.33k stars 154 forks source link

Message archives not being retrieved beyond a certain point #87

Open dnut opened 8 years ago

dnut commented 8 years ago

The MySQL database on my prosody 0.10 server has a record of every message since its creation, but Kaiwa only seems to scroll back a certain number of messages. I can still scroll back to the beginning of my conversation with my "test" account that has been there from the beginning because there weren't that many messages, but for my longer conversations it is very limited.

dnut commented 8 years ago

I'm realizing now this behavior is unpredictable. Sometimes a conversation won't go back at all beyond the few messages it retrieves to fill the current view. Sometimes it will scroll back part through part of the history and give up at some arbitrary point. Sometimes it will scroll all the way back to the beginning. And it doesn't affect all conversations equally. One conversation may be locked into just showing 20 messages or so, while the next conversation down with a different user might scroll all the way back through the entire history.

AndreasUfert commented 8 years ago

Hi, I'm affected by the same issue. In one conversation history seems to be complete but ends on May 30, another conversation seems to have just a backlog of one partner while the messages of the other one are empty. My server is prosody-0.10 and it holds messages in a sqlite3 DB. I can see all messages I expect when dumping this DB as well as when I use other clients.

dnut commented 8 years ago

I have an additional comment on this bug. Sometimes individual messages will be left out. It will display a list of old messages, but sometimes it may list many or all of the messages from one or both participants as blank. Then the next time I use Kaiwa it may show those messages correctly. This problem does not occur for messages intended for the Kaiwa client or carbons. It only appears to occur for archived messages retrieved from the MAM MySQL database.