aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh4
-rw-r--r--cmd/dendritejs/main.go4
2 files changed, 5 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 3ef14889..087f4ae7 100755
--- a/build.sh
+++ b/build.sh
@@ -3,4 +3,6 @@
# Put installed packages into ./bin
export GOBIN=$PWD/`dirname $0`/bin
-go install -v $PWD/`dirname $0`/cmd/... \ No newline at end of file
+go install -v $PWD/`dirname $0`/cmd/...
+
+GOOS=js GOARCH=wasm go build -o main.wasm ./cmd/dendritejs
diff --git a/cmd/dendritejs/main.go b/cmd/dendritejs/main.go
index 9bd8f2ee..23d4327d 100644
--- a/cmd/dendritejs/main.go
+++ b/cmd/dendritejs/main.go
@@ -123,12 +123,12 @@ func main() {
}
p2pPublicRoomProvider := NewLibP2PPublicRoomsProvider(node)
- alias, input, query := roomserver.SetupRoomServerComponent(base)
+ alias, input, query := roomserver.SetupRoomServerComponent(base, keyRing)
eduInputAPI := eduserver.SetupEDUServerComponent(base, cache.New())
asQuery := appservice.SetupAppServiceAPIComponent(
base, accountDB, deviceDB, federation, alias, query, transactions.New(),
)
- fedSenderAPI := federationsender.SetupFederationSenderComponent(base, federation, query)
+ fedSenderAPI := federationsender.SetupFederationSenderComponent(base, federation, query, input)
clientapi.SetupClientAPIComponent(
base, deviceDB, accountDB,