diff --git a/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.h b/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.h index 9f5dc357d..7967ba35e 100644 --- a/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.h +++ b/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.h @@ -23,6 +23,13 @@ */ extern NSString *const kMXKRoomBubbleCellRiotEditButtonPressed; +/** + Action identifier used when the user tapped on receipts area. + + The 'userInfo' disctionary contains an 'MXKReceiptSendersContainer' object under the 'kMXKRoomBubbleCellReceiptsContainerKey' key, representing the receipts container which was tapped on. + */ +extern NSString *const kMXKRoomBubbleCellTapOnReceiptsContainer; + /** Define a `MXKRoomBubbleTableViewCell` category at Riot level to handle bubble customisation. */ @@ -56,6 +63,11 @@ extern NSString *const kMXKRoomBubbleCellRiotEditButtonPressed; */ - (void)addDateLabel; +/** + Called when the user taps on the Receipt Container. + */ +- (IBAction)onReceiptContainerTap:(UITapGestureRecognizer *)sender; + /** Blur the view by adding a transparent overlay. Default is NO. */ diff --git a/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m b/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m index d13b8a0af..2af3a588d 100644 --- a/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m +++ b/Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m @@ -29,6 +29,7 @@ #define VECTOR_ROOMBUBBLETABLEVIEWCELL_MARK_WIDTH 4 NSString *const kMXKRoomBubbleCellRiotEditButtonPressed = @"kMXKRoomBubbleCellRiotEditButtonPressed"; +NSString *const kMXKRoomBubbleCellTapOnReceiptsContainer = @"kMXKRoomBubbleCellTapOnReceiptsContainer"; @implementation MXKRoomBubbleTableViewCell (Riot)