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:09:17 +02:00
parent 00c7400b0f
commit de61867134
+14 -2
View File
@@ -1066,8 +1066,15 @@
}
else if (tappedEvent)
{
// Highlight this event in displayed message
customizedRoomDataSource.selectedEventId = tappedEvent.eventId;
if (tappedEvent.mxkState != MXKEventStateSendingFailed)
{
// Highlight this event in displayed message
customizedRoomDataSource.selectedEventId = tappedEvent.eventId;
}
else
{
[self dataSource:dataSource didRecognizeAction:kMXKRoomBubbleCellVectorEditButtonPressed inCell:cell userInfo:userInfo];
}
}
// Force table refresh
@@ -1445,6 +1452,11 @@
}
}
}
else if ([actionIdentifier isEqualToString:kMXKRoomBubbleCellTapOnAttachmentView]
&& ((MXKRoomBubbleTableViewCell*)cell).bubbleData.attachment.event.mxkState == MXKEventStateSendingFailed)
{
[self dataSource:dataSource didRecognizeAction:kMXKRoomBubbleCellVectorEditButtonPressed inCell:cell userInfo:@{kMXKRoomBubbleCellEventKey:((MXKRoomBubbleTableViewCell*)cell).bubbleData.attachment.event}];
}
else
{
// Keep default implementation for other actions