• Delete message handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • deleteOneMessage
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

    Returns Promise<adapter.AdapterHandlerResponse>

    204 Status No Content

    Description

    This handler will delete message by applying the following steps in sequence:

    1. Delete message (chatService.deleteOneMessage)

    2. Return 204 Status No Content

    Throws

    400 NBError Bad Request

    • message id not found

    Throws

    500 NBError Internal Server Error

    • message delete failed

Generated using TypeDoc