6029: Refacto how to handle all state of the live location cell

This commit is contained in:
MaximeE
2022-04-22 18:04:19 +02:00
parent b1ad2419ad
commit 0633d01abe
24 changed files with 368 additions and 73 deletions
@@ -83,6 +83,20 @@ extern NSString *const kMXKRoomBubbleCellTapOnContentView;
*/
extern NSString *const kMXKRoomBubbleCellUnsentButtonPressed;
/**
Action identifier used when the user pressed stop share button displayed in live location cell.
The `userInfo` dictionary contains an `MXEvent` object under the `kMXKRoomBubbleCellEventKey` key, representing the live location event to stop.
*/
extern NSString *const kMXKRoomBubbleCellStopShareButtonPressed;
/**
Action identifier used when the user pressed retry share button displayed in live location cell.
The `userInfo` dictionary contains an `MXEvent` object under the `kMXKRoomBubbleCellEventKey` key, representing the live location event to retry.
*/
extern NSString *const kMXKRoomBubbleCellRetryShareButtonPressed;
/**
Action identifier used when the user long pressed on a displayed event.
@@ -41,7 +41,10 @@ NSString *const kMXKRoomBubbleCellTapOnAttachmentView = @"kMXKRoomBubbleCellTapO
NSString *const kMXKRoomBubbleCellTapOnOverlayContainer = @"kMXKRoomBubbleCellTapOnOverlayContainer";
NSString *const kMXKRoomBubbleCellTapOnContentView = @"kMXKRoomBubbleCellTapOnContentView";
NSString *const kMXKRoomBubbleCellUnsentButtonPressed = @"kMXKRoomBubbleCellUnsentButtonPressed";
NSString *const kMXKRoomBubbleCellStopShareButtonPressed = @"kMXKRoomBubbleCellStopShareButtonPressed";
NSString *const kMXKRoomBubbleCellRetryShareButtonPressed = @"kMXKRoomBubbleCellRetryShareButtonPressed";
NSString *const kMXKRoomBubbleCellLongPressOnEvent = @"kMXKRoomBubbleCellLongPressOnEvent";
NSString *const kMXKRoomBubbleCellLongPressOnProgressView = @"kMXKRoomBubbleCellLongPressOnProgressView";