mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user