Skip to content

Commit afcced7

Browse files
committed
🐛(frontend) do not display delivering status if message is still draft
1 parent 23356c5 commit afcced7

File tree

1 file changed

+1
-1
lines changed
  • src/frontend/src/features/layouts/components/thread-view/components/thread-message

1 file changed

+1
-1
lines changed

src/frontend/src/features/layouts/components/thread-view/components/thread-message/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const ThreadMessage = forwardRef<HTMLElement, ThreadMessageProps>(
6565

6666
const getRecipientDeliveryStatus = (recipient: MessageRecipient): ContactChipDeliveryStatus | undefined => {
6767
// If the message has just been sent, it has not delivery status but for the sender it is useful to show that the message is being delivered
68-
if (message.is_sender && recipient.delivery_status === null) {
68+
if (message.is_sender && recipient.delivery_status === null && !message.is_draft) {
6969
return { 'status': 'delivering', 'timestamp': null, 'message': null };
7070
}
7171
switch (recipient.delivery_status) {

0 commit comments

Comments
 (0)