Merge pull request #325 from vector-im/vector_313

Improved images & videos sending failure UX
This commit is contained in:
manuroe
2016-05-18 08:14:13 +02:00
5 changed files with 45 additions and 0 deletions
@@ -1454,6 +1454,12 @@
}
}
}
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
{
// Keep default implementation for other actions