Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Conversation

@filipealva
Copy link
Contributor

@RocketChat/ios

Closes #2364

@filipealva filipealva added this to the 3.2.0 milestone Nov 27, 2018
@filipealva filipealva requested a review from cardoso November 27, 2018 17:36

extension BaseMessageCell: UIGestureRecognizerDelegate {

func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOf otherGestureRecognizer: UIGestureRecognizer) -> Bool {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 146 characters (line_length)

}

if avatarTapGesture == nil {
let gesture = UITapGestureRecognizer(target: self, action: #selector(handleUsernameTapGestureCell(recognizer:)))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 124 characters (line_length)

}

if usernameTapGesture == nil && username != nil {
let gesture = UITapGestureRecognizer(target: self, action: #selector(handleUsernameTapGestureCell(recognizer:)))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 124 characters (line_length)


func insertGesturesIfNeeded(with username: UILabel?) {
if longPressGesture == nil {
let gesture = UILongPressGestureRecognizer(target: self, action: #selector(handleLongPressMessageCell(recognizer:)))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 128 characters (line_length)

@codecov
Copy link

codecov bot commented Nov 28, 2018

Codecov Report

Merging #2369 into develop will decrease coverage by 0.06%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2369      +/-   ##
===========================================
- Coverage     26.2%   26.13%   -0.07%     
===========================================
  Files          440      440              
  Lines        16450    16489      +39     
===========================================
  Hits          4310     4310              
- Misses       12140    12179      +39
Impacted Files Coverage Δ
...ews/Chat/New Chat/Cells/BaseImageMessageCell.swift 0% <ø> (ø) ⬆️
...ews/Chat/New Chat/Cells/BaseVideoMessageCell.swift 0% <ø> (ø) ⬆️
...ews/Chat/New Chat/Cells/BaseQuoteMessageCell.swift 0% <ø> (ø) ⬆️
.../Chat/New Chat/ChatItems/FileMessageChatItem.swift 0% <0%> (ø) ⬆️
...t/Views/Chat/New Chat/Cells/ImageMessageCell.swift 0% <0%> (ø) ⬆️
...cket.Chat/Views/Chat/New Chat/Cells/FileCell.swift 0% <0%> (ø) ⬆️
...hat/Views/Chat/New Chat/Cells/MessageURLCell.swift 0% <0%> (ø) ⬆️
...at/New Chat/ChatItems/MessageActionsChatItem.swift 0% <0%> (ø) ⬆️
...at/Views/Chat/New Chat/Cells/BaseMessageCell.swift 0% <0%> (ø) ⬆️
...at/Views/Chat/New Chat/Cells/FileMessageCell.swift 0% <0%> (ø) ⬆️
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d265fbe...ac59937. Read the comment docs.

Copy link
Member

@cardoso cardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me @filipealva 👍

Copy link
Contributor

@rafaelks rafaelks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks way simpler now, thanks @filipealva! 👍

@rafaelks rafaelks merged commit c75524b into develop Nov 28, 2018
@rafaelks rafaelks deleted the fix/message-header-actions branch November 28, 2018 11:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants