-
-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed restricted users' usernames not being clickable #5405
Conversation
It's more of an "author" anyway then a regular mention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -735,6 +738,26 @@ void MentionElement::addToContainer(MessageLayoutContainer &container, | |||
TextElement::addToContainer(container, flags); | |||
} | |||
|
|||
MessageElement *MentionElement::setLink(const Link &link) | |||
{ | |||
assert(false && "MentionElement::setLink should not be called. Pass " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: no header providing "assert" is directly included [misc-include-cleaner]
src/messages/MessageElement.cpp:15:
+ #include <cassert>
Can you please also check how irc user cards work after this change? I am unable to do it for most of today |
The author is unchanged, both open usercards of the name
Mentions are unchanged, they don't open anything
I don't have to merge this in right now, so I can let you give it a try as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -735,6 +738,26 @@ void MentionElement::addToContainer(MessageLayoutContainer &container, | |||
TextElement::addToContainer(container, flags); | |||
} | |||
|
|||
MessageElement *MentionElement::setLink(const Link &link) | |||
{ | |||
assert(false && "MentionElement::setLink should not be called. Pass " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: no header providing "assert" is directly included [misc-include-cleaner]
src/messages/MessageElement.cpp:15:
+ #include <cassert>
also made the linking be automatic from now on, ensuring we don't make the same mistake again with MentionElements