// SPDX-FileCopyrightText: 2024 John Livingston // // SPDX-License-Identifier: AGPL-3.0-only import { html } from 'lit' /** * Renders the message as a search result. * @param el The message element * @param mucModel The MUC model * @param searchOccupantModel The model of the occupant for which we are searching * @param message The message (warning: this is not a model) * @returns TemplateResult (or equivalent) */ export function tplMucMamSearchMessage (el, mucModel, searchOccupantModel, message) { const occupant = el.getMessageOccupant() return html` ${ occupant ? html` ` : '' }
${el.getDateTime()}
` }