mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Delete for everyone: Track sends and show failure states
This commit is contained in:
@@ -61,7 +61,9 @@ export const MessageMetadata: FunctionComponent<PropsType> = props => {
|
||||
if (isError || isPartiallySent || isPaused) {
|
||||
let statusInfo: React.ReactChild;
|
||||
if (isError) {
|
||||
statusInfo = i18n('sendFailed');
|
||||
statusInfo = deletedForEveryone
|
||||
? i18n('deleteFailed')
|
||||
: i18n('sendFailed');
|
||||
} else if (isPaused) {
|
||||
statusInfo = i18n('sendPaused');
|
||||
} else {
|
||||
@@ -76,7 +78,9 @@ export const MessageMetadata: FunctionComponent<PropsType> = props => {
|
||||
showMessageDetail(id);
|
||||
}}
|
||||
>
|
||||
{i18n('partiallySent')}
|
||||
{deletedForEveryone
|
||||
? i18n('partiallyDeleted')
|
||||
: i18n('partiallySent')}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
@@ -136,7 +140,7 @@ export const MessageMetadata: FunctionComponent<PropsType> = props => {
|
||||
<Spinner svgSize="small" size="14px" direction={direction} />
|
||||
</div>
|
||||
) : null}
|
||||
{!deletedForEveryone &&
|
||||
{(!deletedForEveryone || status === 'sending') &&
|
||||
!textPending &&
|
||||
direction === 'outgoing' &&
|
||||
status !== 'error' &&
|
||||
|
||||
Reference in New Issue
Block a user