Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPreMessageDeletePrevent

Handler which is called to determine whether a user is allowed to delete a message or not.

Hierarchy

  • IPreMessageDeletePrevent

Index

Methods

Optional checkPreMessageDeletePrevent

  • checkPreMessageDeletePrevent(message: IMessage, read: IRead, http: IHttp): Promise<boolean>
  • Enables the handler to signal to the Apps framework whether this handler should actually be executed for the message about to be deleted.

    Parameters

    • message: IMessage

      The message which is being deleted

    • read: IRead

      An accessor to the environment

    • http: IHttp

      An accessor to the outside world

    Returns Promise<boolean>

    whether to run the prevent or not

executePreMessageDeletePrevent

  • Method which is to be used to prevent a message from being deleted.

    Parameters

    • message: IMessage

      The message about to be deleted

    • read: IRead

      An accessor to the environment

    • http: IHttp

      An accessor to the outside world

    • persistence: IPersistence

      An accessor to the App's persistence storage

    Returns Promise<boolean>

    whether to prevent the message from being deleted

Generated using TypeDoc