Open NGoedix opened 1 year ago
As note, the message is correctly deleted in both devices, but the request to the SnodeAPI to delete the messages from the server return that exception
Any update?
Update? 1 month from the creation of the issue
This one will be fixed with the new disappearing messages release
Is the problem in the libsession or in the nodes? Were the messages deleted correctly despite giving that error code? I would like to help with some PR
I think what might be happening currently is the server message hash is being tracked incorrectly locally, which tells the node to delete a hash that may not exist or never did exist in that swarm, or it might be that the node it is trying to delete the message from isn't a part of the pubkey's swarm anymore... usually I think it isn't an issue but would be good to revisit the error handling. I think failures in these cases means that the message shouldn't exist anymore on the node you're trying to delete it from
Code of conduct
Describe the bug
Continuous failed attempt to complete SnodeAPI.deleteMessage.
To reproduce
Steps to reproduce the behavior:
In a private conversation, delete a message for both of you, when you delete it the server hash of the message is deleted before calling the messageDataProvider.getServerHashForMessage method, so calling this method will do nothing as you will get nothing. Meanwhile, on the other device the MessageReceiver.handleUnsendRequest method will be called, which will send a request through the SnodeAPI to delete the messages, which always ends in the same ending:
Smartphone (please complete the following information):