@@ -12,10 +12,10 @@ import {
1212/** @param {MessageProps } props */
1313export function Message ( props ) {
1414 const { message, messageStatus, permissions, common } = props ;
15- const { currentUser, theme, chatbox, conversation , t } = common ;
15+ const { currentUser, theme, chatbox, conversationId , t } = common ;
1616 const { Avatar, Icon, ReferencedMessage, TimeAgo, MessageActionMenu } = theme ;
1717
18- const participants = useParticipants ( conversation . id , 3 ) ;
18+ const participants = useParticipants ( conversationId , 3 ) ;
1919
2020 const isGroupChat = participants . length >= 3 ;
2121 const sender = message . sender ;
@@ -40,6 +40,7 @@ export function Message(props) {
4040 className ="t-theme-message "
4141 t-sender =${ senderType }
4242 t-message-id =${ message . id }
43+ t-status=${ messageStatus }
4344 >
4445 < div className ="t-message-row ">
4546 ${ sender &&
@@ -81,7 +82,6 @@ export function Message(props) {
8182 html `
8283 < ${ PopoverButton }
8384 type ="menu"
84- t-message-status=${ messageStatus }
8585 popoverComponent=${ MessageActionMenu }
8686 popoverProps=${ { message, permissions, common } }
8787 className="t-message-action-menu-button"
@@ -136,6 +136,10 @@ export function Message(props) {
136136function StatusTick ( { messageStatus, common } ) {
137137 const { Icon } = common . theme ;
138138
139+ if ( messageStatus === "virtual" ) {
140+ return null ;
141+ }
142+
139143 if ( messageStatus === "sending" ) {
140144 return html `
141145 < span className ="t-status-icon ">
0 commit comments