mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-17 19:39:20 +00:00
Only send one notification per vault import and purge, improve move ciphers functions
This commit is contained in:
parent
f935f5cf46
commit
bef1183c49
5 changed files with 83 additions and 83 deletions
|
|
@ -240,7 +240,6 @@ impl WebSocketUsers {
|
|||
}
|
||||
|
||||
// NOTE: The last modified date needs to be updated before calling these methods
|
||||
#[allow(dead_code)]
|
||||
pub fn send_user_update(&self, ut: UpdateType, user: &User) {
|
||||
let data = create_update(
|
||||
vec![
|
||||
|
|
@ -325,6 +324,7 @@ fn create_ping() -> Vec<u8> {
|
|||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(PartialEq)]
|
||||
pub enum UpdateType {
|
||||
CipherUpdate = 0,
|
||||
CipherCreate = 1,
|
||||
|
|
@ -340,6 +340,8 @@ pub enum UpdateType {
|
|||
SyncSettings = 10,
|
||||
|
||||
LogOut = 11,
|
||||
|
||||
None = 100,
|
||||
}
|
||||
|
||||
use rocket::State;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue