deltachat / deltachat-core-rust

Delta Chat Rust Core library, used by Android/iOS/desktop apps, bindings and bots 📧
https://delta.chat/en/contribute
Other
659 stars 85 forks source link

fix: Update quota if it's stale, not fresh (#5683) #5717

Closed iequidoo closed 3 months ago

iequidoo commented 3 months ago

Looks like this can be covered by the Python tests btw, one minute is less than 300 s (the current timeout).

iequidoo commented 3 months ago

Now update_recent_quota() emits EventType::ConnectivityChanged, apparently because the quota is shown in the Connectivity view in the apps. Maybe having a separate event is better as it would be easier to check in the tests

link2xt commented 3 months ago

Maybe having a separate event is better as it would be easier to check in the tests

The idea is that UIs don't need to care about quota, they simply refresh connectivity view when an update saying that HTML has been updated is emitted.