mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge branch 'mkirk/show-failed-footer'
This commit is contained in:
commit
2067b395bf
|
@ -3927,8 +3927,15 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
|
|||
TSOutgoingMessage *outgoingMessage = (TSOutgoingMessage *)viewItem.interaction;
|
||||
MessageRecipientStatus recipientStatus =
|
||||
[MessageRecipientStatusUtils recipientStatusWithOutgoingMessage:outgoingMessage];
|
||||
shouldHideRecipientStatus
|
||||
= (interactionType == lastInteractionType && recipientStatus == lastRecipientStatus);
|
||||
|
||||
if (outgoingMessage.messageState == TSOutgoingMessageStateUnsent) {
|
||||
// always sow "failed to send" status
|
||||
shouldHideRecipientStatus = NO;
|
||||
} else {
|
||||
shouldHideRecipientStatus
|
||||
= (interactionType == lastInteractionType && recipientStatus == lastRecipientStatus);
|
||||
}
|
||||
|
||||
lastRecipientStatus = recipientStatus;
|
||||
}
|
||||
lastInteractionType = interactionType;
|
||||
|
|
Loading…
Reference in a new issue