Represents a MSC3089 branch - a reference to a file (leaf) in the tree. Note that this is UNSTABLE and subject to breaking changes without notice.

Constructors

Properties

directory: MSC3089TreeSpace
indexEvent: MatrixEvent

Accessors

Methods

  • Creates a new version of this file with contents in a type that is compatible with MatrixClient.uploadContent().

    Parameters

    • name: string

      The name of the file.

    • encryptedContents: XMLHttpRequestBodyInit

      The encrypted contents.

    • info: EncryptedFile

      The encrypted file information.

    • OptionaladditionalContent: IContent

      Optional event content fields to include in the message.

    Returns Promise<ISendEventResponse>

    Promise which resolves to the file event's sent response.

  • Sets a file as locked or unlocked.

    Parameters

    • locked: boolean

      True to lock the file, false otherwise.

    Returns Promise<void>

    Promise which resolves when complete.