diff --git a/Client/tauri-client/src-tauri/src/commands.rs b/Client/tauri-client/src-tauri/src/commands.rs index 5ae07de2..0c876d92 100644 --- a/Client/tauri-client/src-tauri/src/commands.rs +++ b/Client/tauri-client/src-tauri/src/commands.rs @@ -241,7 +241,7 @@ pub fn get_identity_pin( .store(IDENTITY_PINS_STORE) .map_err(|e| format!("failed to open identity pins store: {e}"))?; - let value = store.get(&identity_pin_key(&host, &user_id)).and_then(|v| { + let value = store.get(identity_pin_key(&host, &user_id)).and_then(|v| { if let Value::String(s) = v { Some(s) } else { diff --git a/Server/api/profile_handler.go b/Server/api/profile_handler.go index 56c09481..50aee3ab 100644 --- a/Server/api/profile_handler.go +++ b/Server/api/profile_handler.go @@ -178,7 +178,7 @@ func handleUpdateProfile(svc *service.Services, broadcaster ProfileBroadcaster) if req.IdentityPublicKey != nil { updated, err = svc.Users.UpdateIdentityKey(r.Context(), user.ID, *req.IdentityPublicKey) if err != nil { - writeServiceError(w, err) + writeServiceError(r.Context(), w, err) return } }