1
0
Fork 0

Correct update cipher order: first save cipher, then cipher-folder, then notify

Dieser Commit ist enthalten in:
Daniel García 2019-01-16 19:55:14 +01:00
Ursprung 20964ac2d8
Commit 1ce2587330
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: FC8A7D14C3CD543A

Datei anzeigen

@ -303,8 +303,8 @@ pub fn update_cipher_from_data(
cipher.data = type_data.to_string(); cipher.data = type_data.to_string();
cipher.password_history = data.PasswordHistory.map(|f| f.to_string()); cipher.password_history = data.PasswordHistory.map(|f| f.to_string());
cipher.move_to_folder(data.FolderId, &headers.user.uuid, &conn)?;
cipher.save(&conn)?; cipher.save(&conn)?;
cipher.move_to_folder(data.FolderId, &headers.user.uuid, &conn)?;
nt.send_cipher_update(ut, &cipher, &cipher.update_users_revision(&conn)); nt.send_cipher_update(ut, &cipher, &cipher.update_users_revision(&conn));