mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Hide "delete for everyone" button for pending messages
This commit is contained in:
@@ -1493,11 +1493,8 @@ export function canDeleteForEveryone(
|
||||
!message.deletedForEveryone &&
|
||||
// Is it too old to delete?
|
||||
isMoreRecentThan(message.sent_at, THREE_HOURS) &&
|
||||
// Is it pending/sent to anyone?
|
||||
someSendStatus(
|
||||
message.sendStateByConversationId,
|
||||
sendStatus => sendStatus !== SendStatus.Failed
|
||||
)
|
||||
// Is it sent to anyone?
|
||||
someSendStatus(message.sendStateByConversationId, isSent)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user