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 {