Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ To build and run the River UI locally for development:
# This example is for Ubuntu and may be different on your system
sudo apt-get install libssl-dev

# Install Node.js (v20+) and npm
# See https://nodejs.org/en/download for installation instructions.
# Note: system packages (e.g. `apt-get install npm`) may ship outdated
# versions that don't work — install from the official site instead.

# Install build tools
cargo install dioxus-cli
cargo install cargo-make
Expand All @@ -85,6 +90,9 @@ To build and run the River UI locally for development:
git submodule init
git submodule update

# Install Node.js dependencies (Tailwind CSS)
cd ui && npm install && cd ..

# Run development server with example data
cargo make dev-example
```
Expand Down
9 changes: 5 additions & 4 deletions ui/src/components/app/freenet_api/room_synchronizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,11 @@ impl RoomSynchronizer {
let authorized_upgrade =
AuthorizedUpgradeV1::new(upgrade, &room_data.self_sk);

ChatRoomStateV1 {
upgrade: OptionalUpgradeV1(Some(authorized_upgrade)),
..Default::default()
}
// Clone the current room state so the old contract's
// validation passes, then set the upgrade pointer on it.
let mut state = room_data.room_state.clone();
state.upgrade = OptionalUpgradeV1(Some(authorized_upgrade));
state
} else {
continue;
}
Expand Down