Hide "delete for everyone" button for pending messages
This commit is contained in:
parent
ee8d0196b1
commit
c88cb62464
3 changed files with 36 additions and 44 deletions
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue