• Mark message read handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • markMessageRead
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • body.userId is required
      • body.messageId is required

    Returns Promise<adapter.AdapterHandlerResponse>

    204 Status No Content

    Description

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

    1. Mark message read by userId and messageId (chatService.markMessageRead)

    2. Return 204 Status No Content

    Throws

    400 NBError Bad Request

    • message id not found

Generated using TypeDoc