From 35d32b9292d3d0d7118776308f911c07271a7e0a Mon Sep 17 00:00:00 2001 From: Szymon Szlachtowicz <38212223+Szymx95@users.noreply.github.com> Date: Mon, 18 Oct 2021 11:00:23 +0200 Subject: [PATCH] Use prod and static (#78) --- packages/react-chat/src/hooks/useMessenger.ts | 8 +------- packages/status-communities/src/community.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/react-chat/src/hooks/useMessenger.ts b/packages/react-chat/src/hooks/useMessenger.ts index 9932da63..78fa4bde 100644 --- a/packages/react-chat/src/hooks/useMessenger.ts +++ b/packages/react-chat/src/hooks/useMessenger.ts @@ -1,5 +1,5 @@ // import { StoreCodec } from "js-waku"; -import { getBootstrapNodes, StoreCodec } from "js-waku"; +import { StoreCodec } from "js-waku"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { Identity, Messenger } from "status-communities/dist/cjs"; import { ApplicationMetadataMessage } from "status-communities/dist/cjs"; @@ -53,7 +53,6 @@ export function useMessenger(chatId: string, chatIdList: string[]) { setLastMessage(lastLoadTime.current?.[chatId]); } }, [chatId]); - const clearNotifications = useCallback((id: string) => { setNotifications((prevNotifications) => { return { @@ -148,11 +147,6 @@ export function useMessenger(chatId: string, chatIdList: string[]) { }, }, }, - bootstrap: getBootstrapNodes.bind({}, [ - "fleets", - "wakuv2.test", - "waku-websocket", - ]), }); await new Promise((resolve) => { messenger.waku.libp2p.peerStore.on( diff --git a/packages/status-communities/src/community.ts b/packages/status-communities/src/community.ts index 2ed455a3..4ffac4f6 100644 --- a/packages/status-communities/src/community.ts +++ b/packages/status-communities/src/community.ts @@ -29,7 +29,7 @@ export class Community { * Can be found in the community's invite link: https://join.status.im/c/ * @param waku The Waku instance, used to retrieve Community information from the network. */ - public async instantiateCommunity( + public static async instantiateCommunity( publicKey: string, waku: Waku ): Promise {