Show "unplayed" dot on outgoing audio messages
This commit is contained in:
parent
b73c029d5f
commit
14929fb408
16 changed files with 219 additions and 60 deletions
|
@ -52,6 +52,7 @@ import {
|
|||
isMessageJustForMe,
|
||||
isRead,
|
||||
isSent,
|
||||
isViewed,
|
||||
maxStatus,
|
||||
someSendStatus,
|
||||
} from '../../messages/MessageSendState';
|
||||
|
@ -914,7 +915,7 @@ export function getMessagePropStatus(
|
|||
if (hasErrors(message)) {
|
||||
return sent ? 'partial-sent' : 'error';
|
||||
}
|
||||
return sent ? 'read' : 'sending';
|
||||
return sent ? 'viewed' : 'sending';
|
||||
}
|
||||
|
||||
const sendStates = Object.values(
|
||||
|
@ -928,6 +929,9 @@ export function getMessagePropStatus(
|
|||
if (hasErrors(message)) {
|
||||
return isSent(highestSuccessfulStatus) ? 'partial-sent' : 'error';
|
||||
}
|
||||
if (isViewed(highestSuccessfulStatus)) {
|
||||
return 'viewed';
|
||||
}
|
||||
if (isRead(highestSuccessfulStatus)) {
|
||||
return 'read';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue