bluebubbles-server icon indicating copy to clipboard operation
bluebubbles-server copied to clipboard

[Feature Request] Deduping requests

Open dolfies opened this issue 1 year ago • 2 comments

This feature request kinda applies to both client/server but I didn't really know where to put it, sorry if it's in the wrong place.

When a request errors, the message is sometimes sent anyway on the server side (usually happens when the error is a result of spotty internet on the client's part). When a user retries the request, these messages are duplicated. I propose a nonce is sent with every unique request, allowing the server to drop duplicate requests that have already succeeded, even if the client didn't think so. This would also allow unobtrusive auto request retrying as the main issue of duplication would be resolved. Thank you for your work!

dolfies avatar Jul 16 '24 03:07 dolfies

Personally like the idea with a nonce (just generate a unique hash that isn't dependent on the message, low chance of collision) and it could be an optional parameter for now to avoid being a breaking change

mehapps avatar Aug 19 '24 23:08 mehapps

When it errors out, do you know if the error you are seeing is coming from the client-side erroring out or the server side?

zlshames avatar Jun 20 '25 01:06 zlshames