Skip to content

Commit

Permalink
fix: ignore channel name when copying message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Jan 19, 2024
1 parent 4f2ca3b commit 7eba00a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/messages/layouts/MessageLayoutContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,12 @@ void MessageLayoutContainer::addSelectionText(QString &str, uint32_t from,

if (copymode == CopyMode::OnlyTextAndEmotes)
{
if (element->getCreator().getFlags().hasAny(
{MessageElementFlag::Timestamp,
MessageElementFlag::Username, MessageElementFlag::Badges}))
if (element->getCreator().getFlags().hasAny({
MessageElementFlag::Timestamp,
MessageElementFlag::Username,
MessageElementFlag::Badges,
MessageElementFlag::ChannelName,
}))
{
continue;
}
Expand Down

0 comments on commit 7eba00a

Please sign in to comment.