mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Show "unplayed" dot on outgoing audio messages
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user