Made #channel link in /mentions jump to #channel split (#2220)

This commit is contained in:
Paweł
2020-11-28 17:45:20 +01:00
committed by GitHub
parent 1a4d4dca79
commit 49fa9bfd72
4 changed files with 38 additions and 1 deletions
+1 -1
View File
@@ -356,7 +356,7 @@ void SharedMessageBuilder::addTextOrEmoji(const QString &string_)
void SharedMessageBuilder::appendChannelName()
{
QString channelName("#" + this->channel->getName());
Link link(Link::Url, this->channel->getName() + "\n" + this->message().id);
Link link(Link::JumpToChannel, this->channel->getName());
this->emplace<TextElement>(channelName, MessageElementFlag::ChannelName,
MessageColor::System)