Skip to main content

Function: useOwnSpaceInbox()

useOwnSpaceInbox(__namedParameters): object

Defined in: packages/hypergraph-react/src/hooks/useOwnSpaceInbox.ts:10

Hook for managing a user's own space inbox Provides full read/write capabilities for the user's own space inbox

Parameters

__namedParameters

authPolicy?

any = 'requires_auth'

autoCreate?

boolean = false

inboxId?

string

isPublic?

boolean = false

spaceId

string

Returns

object

authPolicy

authPolicy: any

encryptionPublicKey

encryptionPublicKey: any

error

error: null | Error

inboxId

inboxId: any = realInboxId

isPublic

isPublic: any

loading

loading: boolean

messages

messages: any

refresh()

refresh: () => Promise<void>

Returns

Promise<void>

sendMessage()

sendMessage: (message) => Promise<void>

Parameters

message

string

Returns

Promise<void>