Skip to content

Commit

Permalink
feat: Fix UpdateData method calls in freenet_api
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 23, 2024
1 parent 3549e67 commit 2b28d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/app/freenet_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ impl FreenetApiSynchronizer {
// Handle incremental updates
let mut rooms = use_context::<Signal<Rooms>>();
let mut rooms = rooms.write();
if let Some(room_data) = rooms.map.get_mut(&VerifyingKey::from_bytes(&key.id().bytes()).expect("Invalid key bytes")) {
if let Ok(delta) = ciborium::from_reader(update.as_slice()) {
if let Some(room_data) = rooms.map.get_mut(&VerifyingKey::from_bytes(&key.id().as_bytes()).expect("Invalid key bytes")) {
if let Ok(delta) = ciborium::from_reader(&update.unwrap_delta().as_ref()) {
if let Err(e) = room_data.room_state.apply_delta(
&room_data.room_state,
&room_data.parameters(),
Expand Down

0 comments on commit 2b28d0f

Please sign in to comment.