Use prod and static (#78)
This commit is contained in:
parent
5dc0bd335b
commit
35d32b9292
|
@ -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(
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
Loading…
Reference in New Issue