Skip to content
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

Merged
merged 5 commits into from
Jun 1, 2024

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented May 19, 2024

also made the linking be automatic from now on, ensuring we don't make the same mistake again with MentionElements

Copy link
Contributor

@github-actions github-actions bot left a 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 "
Copy link
Contributor

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>

@Mm2PL
Copy link
Collaborator

Mm2PL commented May 19, 2024

also made the linking be automatic from now on, ensuring we don't make the same mistake again with MentionElements

Can you please also check how irc user cards work after this change? I am unable to do it for most of today

@pajlada
Copy link
Member Author

pajlada commented May 19, 2024

also made the linking be automatic from now on, ensuring we don't make the same mistake again with MentionElements

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

          V---- this opens usercard for "pajlada"
13:37 pajlada: xd

Mentions are unchanged, they don't open anything

                       V------ this is not clickable
13:37 pajlada: yo @forsen what's up

I don't have to merge this in right now, so I can let you give it a try as well

@pajlada
Copy link
Member Author

pajlada commented Jun 1, 2024

image

@pajlada pajlada enabled auto-merge (squash) June 1, 2024 10:40
Copy link
Contributor

@github-actions github-actions bot left a 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 "
Copy link
Contributor

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>

@pajlada pajlada merged commit 2a46ee7 into master Jun 1, 2024
17 checks passed
@pajlada pajlada deleted the feat/auto-link-mention-element branch June 1, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants