mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
added timestamp and disabled pings for inline sent whispers
This commit is contained in:
parent
a91ac5cdf0
commit
f7b9144210
1 changed files with 8 additions and 2 deletions
|
@ -111,10 +111,15 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
|
||||||
|
|
||||||
messages::MessageBuilder b;
|
messages::MessageBuilder b;
|
||||||
|
|
||||||
|
b.emplace<messages::TimestampElement>();
|
||||||
b.emplace<messages::TextElement>(app->accounts->twitch.getCurrent()->getUserName(),
|
b.emplace<messages::TextElement>(app->accounts->twitch.getCurrent()->getUserName(),
|
||||||
messages::MessageElement::Text);
|
messages::MessageElement::Text,
|
||||||
|
messages::MessageColor::Text,
|
||||||
|
FontStyle::ChatMediumBold);
|
||||||
b.emplace<messages::TextElement>("->", messages::MessageElement::Text);
|
b.emplace<messages::TextElement>("->", messages::MessageElement::Text);
|
||||||
b.emplace<messages::TextElement>(words[1], messages::MessageElement::Text);
|
b.emplace<messages::TextElement>(words[1] + ":", messages::MessageElement::Text,
|
||||||
|
messages::MessageColor::Text,
|
||||||
|
FontStyle::ChatMediumBold);
|
||||||
|
|
||||||
QString rest = "";
|
QString rest = "";
|
||||||
|
|
||||||
|
@ -123,6 +128,7 @@ QString CommandController::execCommand(const QString &text, ChannelPtr channel,
|
||||||
}
|
}
|
||||||
|
|
||||||
b.emplace<messages::TextElement>(rest, messages::MessageElement::Text);
|
b.emplace<messages::TextElement>(rest, messages::MessageElement::Text);
|
||||||
|
b.getMessage()->flags |= messages::Message::DoNotTriggerNotification;
|
||||||
|
|
||||||
app->twitch.server->whispersChannel->addMessage(b.getMessage());
|
app->twitch.server->whispersChannel->addMessage(b.getMessage());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue