diff --git a/packages/status-js/.scripts/example copy 2.ts b/packages/status-js/.scripts/example copy 2.ts index fa0aec85..f4e70dd7 100644 --- a/packages/status-js/.scripts/example copy 2.ts +++ b/packages/status-js/.scripts/example copy 2.ts @@ -4,12 +4,15 @@ import { Community } from '../src/community' // import { Messenger } from '../src/messenger' const COMMUNITY_PUBLIC_KEY = - '0x029dd5fecbd689dc11e2a5b399afed92cf1fab65d315b883efca753e8f3882f3bd' // compressed + '0x029dd5fecbd689dc11e2a5b399afed92cf1fab65d315b883efca753e8f3882f3bd' // compressed; A catchy name + // '0x02c788e419b56c714460220bedadc9c5d401ea10eee48d25ac81fc9a06fb75162e' // compressed; A boring name +// const COMMUNITY_CHANNEL_KEY = '0x029dd5fecbd689dc11e2a5b399afed92cf1fab65d315b883efca753e8f3882f3bd06935bce-a863-4827-9990-1652ae375c89' // 06935bce-a863-4827-9990-1652ae375c89; #channel +const COMMUNITY_CHANNEL_KEY = '6102c603-3246-4b90-986d-43c1b87b165f' // #random; UUID ;(async () => { const client = await createClient() - // Community (e.g. description, channels, channel messages) + // Community (e.g. name, description, permissions, members, channels, channel messages) const community = await Community.instantiateCommunity( COMMUNITY_PUBLIC_KEY, client @@ -17,8 +20,8 @@ const COMMUNITY_PUBLIC_KEY = // // Messenger/Messages (e.g. direct messages) // const messenger = await Messenger.create(, client) - // // TODO: Register observers/callbacks - // messenger.addObserver(() => {}) + + // history await client.stop() })() diff --git a/packages/status-js/src/messenger.ts b/packages/status-js/src/messenger.ts index 9358bc79..a9ef7591 100644 --- a/packages/status-js/src/messenger.ts +++ b/packages/status-js/src/messenger.ts @@ -13,7 +13,7 @@ import type { Waku } from 'js-waku' const dbg = debug('communities:messenger') -// tood: pass waku client +// TODO: pass waku client export class Messenger { waku: Waku chatsById: Map