https://github.com/vector-im/vector-ios/issues/313: Improved images & videos sending failure UX: Show the action sheet to resend the media when clicking on it

This commit is contained in:
manuroe
2016-05-17 17:16:13 +02:00
parent de61867134
commit f844f6fe96
+3 -9
View File
@@ -1066,15 +1066,8 @@
}
else if (tappedEvent)
{
if (tappedEvent.mxkState != MXKEventStateSendingFailed)
{
// Highlight this event in displayed message
customizedRoomDataSource.selectedEventId = tappedEvent.eventId;
}
else
{
[self dataSource:dataSource didRecognizeAction:kMXKRoomBubbleCellVectorEditButtonPressed inCell:cell userInfo:userInfo];
}
// Highlight this event in displayed message
customizedRoomDataSource.selectedEventId = tappedEvent.eventId;
}
// Force table refresh
@@ -1455,6 +1448,7 @@
else if ([actionIdentifier isEqualToString:kMXKRoomBubbleCellTapOnAttachmentView]
&& ((MXKRoomBubbleTableViewCell*)cell).bubbleData.attachment.event.mxkState == MXKEventStateSendingFailed)
{
// Shortcut: when clicking on an unsent media, show the action sheet to resend it
[self dataSource:dataSource didRecognizeAction:kMXKRoomBubbleCellVectorEditButtonPressed inCell:cell userInfo:@{kMXKRoomBubbleCellEventKey:((MXKRoomBubbleTableViewCell*)cell).bubbleData.attachment.event}];
}
else