Use prod and static (#78)

This commit is contained in:
Szymon Szlachtowicz 2021-10-18 11:00:23 +02:00 committed by GitHub
parent 5dc0bd335b
commit 35d32b9292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -1,5 +1,5 @@
// import { StoreCodec } from "js-waku"; // 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 { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { Identity, Messenger } from "status-communities/dist/cjs"; import { Identity, Messenger } from "status-communities/dist/cjs";
import { ApplicationMetadataMessage } 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]); setLastMessage(lastLoadTime.current?.[chatId]);
} }
}, [chatId]); }, [chatId]);
const clearNotifications = useCallback((id: string) => { const clearNotifications = useCallback((id: string) => {
setNotifications((prevNotifications) => { setNotifications((prevNotifications) => {
return { return {
@ -148,11 +147,6 @@ export function useMessenger(chatId: string, chatIdList: string[]) {
}, },
}, },
}, },
bootstrap: getBootstrapNodes.bind({}, [
"fleets",
"wakuv2.test",
"waku-websocket",
]),
}); });
await new Promise((resolve) => { await new Promise((resolve) => {
messenger.waku.libp2p.peerStore.on( messenger.waku.libp2p.peerStore.on(

View File

@ -29,7 +29,7 @@ export class Community {
* Can be found in the community's invite link: https://join.status.im/c/<public key> * Can be found in the community's invite link: https://join.status.im/c/<public key>
* @param waku The Waku instance, used to retrieve Community information from the network. * @param waku The Waku instance, used to retrieve Community information from the network.
*/ */
public async instantiateCommunity( public static async instantiateCommunity(
publicKey: string, publicKey: string,
waku: Waku waku: Waku
): Promise<Community> { ): Promise<Community> {