zulip-flutter
zulip-flutter copied to clipboard
backoff: reset on successful event poll
Fixes: #554
I've just edited the issue description to reference the issue it looks like this is about. Please correct it if it's wrong, but if it's right, please add a "Fixes" line to the relevant commit message too, once it's ready to be a not-draft. 🙂
Ah yes, I created this but forgot about it. I saw a different way of approaching this by reseting the reference to backoffMachine as null instead of maintaining this reset state over at: https://github.com/zulip/zulip-flutter/blob/79a7384b5c8ad616f9bbd3874f8828736c279538/lib/model/store.dart#L633-L644
I could've gone down that approach as well, to keep the codebase consistent. Let me know if there's an opinion on this.
Gentle bump to @chrisirhc to see if you're still interested in working on this. 🙂
I'll likely get back to this in a few weeks. Based on the review comment, the change may end up being smaller/straightforward. So if anyone else wants to go ahead and do it before then, I won't be opposed. 🙂
We ended up implementing the approach from https://github.com/zulip/zulip-flutter/pull/564#issuecomment-2021780297, as #871. Thanks again @chrisirhc!