async sendInitialImageMessagesForDonation(donationId, images) {
    this._validateChatMessages(IMAGE, images);

    const [chatDoc, npoInfo] = await this._fetchInfoAndCreateChatForDonation(donationId);
    const chatInfo = chatDoc.data();
    const chatMessages = await this._sendImageMessages(chatInfo.chatId, images, chatInfo, npo, npoInfo);
    return [chatDoc, chatMessages];
  }
/**
   * Create image chat messages for a donation without an existing chat. It will create a new chat and add the chat messages within it
   * @param {string} donationId The id of the donation
   * @param {array} texts A list of image messages. Messages are created in the order in the list
   * @throws {ChatError}
   * @throws {FirebaseError}
   * @return {array} [chatDoc, chatMessageDoc]
   *  {object} chatDoc: The firebase document for the created chat
   *  {array} chatMessagesDocs: A list of firebase documents of the created chat messages
   */
Create image chat messages for a donation without an existing chat. It will create a new chat and add the chat messages within it
@param {string} donationId The id of the donation
@param {array} texts A list of image messages. Messages are created in the order in the list
@throws {ChatError}
@throws {FirebaseError}
@return {array} [chatDoc, chatMessageDoc]
{object} chatDoc: The firebase document for the created chat
{array} chatMessagesDocs: A list of firebase documents of the created chat messages
Create image chat messages for a donation without an existing chat . It will create a new chat and add the chat messages within it @param { string } donationId The id of the donation @param { array } texts A list of image messages . Messages are created in the order in the list @throws { ChatError } @throws { FirebaseError } @return { array } [ chatDoc chatMessageDoc ] { object } chatDoc : The firebase document for the created chat { array } chatMessagesDocs : A list of firebase documents of the created chat messages
async sendInitialImageMessagesForDonation(donationId, images) {
    this._validateChatMessages(IMAGE, images);
    const [chatDoc, npoInfo] = await this._fetchInfoAndCreateChatForDonation(donationId);
    const chatInfo = chatDoc.data();
    const chatMessages = await this._sendImageMessages(chatInfo.chatId, images, chatInfo, npo, npoInfo);
    return [chatDoc, chatMessages];
  }
async sendInitialImageMessagesForDonation ( donationId , images ) { this . _validateChatMessages ( IMAGE , images ) ; const [ chatDoc , npoInfo ] = await this . _fetchInfoAndCreateChatForDonation ( donationId ) ; const chatInfo = chatDoc . data ( ) ; const chatMessages = await this . _sendImageMessages ( chatInfo . chatId , images , chatInfo , npo , npoInfo ) ; return [ chatDoc , chatMessages ] ; }
Create image chat messages for a donation without an existing chat.
Create image chat messages for a donation without an existing chat .