kontalk / tigase-extension

Tigase XMPP extensions for Kontalk
GNU General Public License v3.0
13 stars 14 forks source link

Ghost messages #88

Open daniele-athome opened 6 years ago

daniele-athome commented 6 years ago

This might be the whole cause of missing deliveries that is troubling Kontalk users (and even me). I found messages being saved again and again (thus refreshing the expiration date) from January 2017 (!!!!) to existing and valid users. What is happening here??

daniele-athome commented 6 years ago

Ghost messages appear to be saved with full JIDs having non-existing resources. The resource is the device ID, since it isn't connected, Tigase sends the message to offline storage again (and sends a copy to the bare JID, but that doesn't fix the issue itself).

Anyway the problem here is mainly waste of server resources. I need to find a way to properly store the timestamp to the initial value, and not to the time of each storage.

daniele-athome commented 6 years ago

To a more close look at the database, there are messages with a bare JID in to and they are not delivered nonetheless. That is not valid behavior.