π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix Space WASM error mapping
Anand Baburajan75785c9b163c
diff --git a/rust/bindings/wasm/ente-wasm/src/space.rs b/rust/bindings/wasm/ente-wasm/src/space.rsindex bf17dd2c20..b7bbd8a18b 100644--- a/rust/bindings/wasm/ente-wasm/src/space.rs+++ b/rust/bindings/wasm/ente-wasm/src/space.rs@@ -2,7 +2,7 @@use std::collections::BTreeMap;-use ente_core::{crypto::decode_b64, http::Error as HttpError};+use ente_core::{crypto::decode_b64, http_legacy::Error as HttpError};use ente_space::{AccountSpaceCtx, CreatedSpace, DecryptedMessage, DecryptedPost, DecryptedSpaceProfile,MessageConversationActivity, MessageResponse, OpenAccountSpaceCtxInput, PostResponse,diff --git a/rust/space/src/client/friends.rs b/rust/space/src/client/friends.rsindex fa8e676c63..84bf2f6f04 100644--- a/rust/space/src/client/friends.rs+++ b/rust/space/src/client/friends.rs@@ -42,10 +42,15 @@ impl AccountSpaceCtx {requester_key_version: requester_space.key_version,};let path = format!("/spaces/{}/friends/add", requester_space.space_id);- self.client()+ let response: FriendStatusResponse = self+ .client().post_json(&path, &payload).await- .map_err(Into::into)+ .map_err(SpaceError::from)?;+ if response.status == "friend" {+ self.clear_friend_share_cache()?;+ }+ Ok(response)}pub async fn request_friend_by_username(