mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
[PR #3579] [CLOSED] Run mobile push requests in background #2972
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3579
Author: @quexten
Created: 6/13/2023
Status: ❌ Closed
Base:
main← Head:fix/mobile-push-in-background📝 Commits (1)
e460643Fix mobile push blocking requests and spamming push server📊 Changes
7 files changed (+146 additions, -100 deletions)
View changed files
📝
src/api/admin.rs(+3 -3)📝
src/api/core/accounts.rs(+5 -5)📝
src/api/core/organizations.rs(+1 -1)📝
src/api/core/sends.rs(+66 -16)📝
src/api/notifications.rs(+12 -5)📝
src/api/push.rs(+46 -69)📝
src/db/models/device.rs(+13 -1)📄 Description
Another partial fix for #3577.
Combining this with PR #3578, this should solve #3577.
Mobile push requests are currently run blocking within the HTTP Put for updating a cipher request. In the Bitwarden UI this just shows as if updating the entry takes up to multiple seconds. This request moves the actual HTTP request to the Bitwarden Push servers into a tokio task. This way, sending the notifications does not block the request to update a cipher.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.