From 8a6917543b2d7d23b68a4d12c3306d78c20aad6c Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Mon, 26 Jun 2017 22:22:32 +0400 Subject: [PATCH] Review changes --- Riot/Categories/MXKRoomBubbleTableViewCell+Riot.h | 12 ++++++++++++ Riot/Categories/MXKRoomBubbleTableViewCell+Riot.m | 1 + 2 files changed, 13 insertions(+) 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)