mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
LocationPlainCell: Support long press for context menu display.
This commit is contained in:
parent
023e1f3bdb
commit
8a9f026715
1 changed files with 11 additions and 0 deletions
|
@ -130,6 +130,17 @@ class LocationPlainCell: SizableBaseRoomCell, RoomCellReactionsDisplayable, Room
|
|||
super.prepareForReuse()
|
||||
self.event = nil
|
||||
}
|
||||
|
||||
override func onLongPressGesture(_ longPressGestureRecognizer: UILongPressGestureRecognizer!) {
|
||||
|
||||
var userInfo: [String: Any]?
|
||||
|
||||
if let event = self.event {
|
||||
userInfo = [kMXKRoomBubbleCellEventKey: event]
|
||||
}
|
||||
|
||||
delegate.cell(self, didRecognizeAction: kMXKRoomBubbleCellLongPressOnEvent, userInfo: userInfo)
|
||||
}
|
||||
}
|
||||
|
||||
extension LocationPlainCell: RoomTimelineLocationViewDelegate {
|
||||
|
|
Loading…
Reference in a new issue