mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
grey out historic messages
This commit is contained in:
parent
e900b10e0c
commit
27ac236115
2 changed files with 4 additions and 4 deletions
|
@ -48,10 +48,10 @@ namespace {
|
||||||
|
|
||||||
MessageParseArgs args;
|
MessageParseArgs args;
|
||||||
TwitchMessageBuilder builder(channel.get(), privMsg, args);
|
TwitchMessageBuilder builder(channel.get(), privMsg, args);
|
||||||
|
builder.message().flags.set(MessageFlag::Disabled);
|
||||||
|
|
||||||
if (!builder.isIgnored())
|
if (!builder.isIgnored())
|
||||||
{
|
|
||||||
messages.push_back(builder.build());
|
messages.push_back(builder.build());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return messages;
|
return messages;
|
||||||
|
|
|
@ -188,9 +188,7 @@ void SplitInput::installKeyPressedEvent()
|
||||||
{
|
{
|
||||||
auto c = this->split_->getChannel();
|
auto c = this->split_->getChannel();
|
||||||
if (c == nullptr)
|
if (c == nullptr)
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
QString message = ui_.textEdit->toPlainText();
|
QString message = ui_.textEdit->toPlainText();
|
||||||
|
|
||||||
|
@ -202,7 +200,9 @@ void SplitInput::installKeyPressedEvent()
|
||||||
if ((this->prevMsg_.isEmpty() ||
|
if ((this->prevMsg_.isEmpty() ||
|
||||||
!this->prevMsg_.endsWith(message)) &&
|
!this->prevMsg_.endsWith(message)) &&
|
||||||
!message.trimmed().isEmpty())
|
!message.trimmed().isEmpty())
|
||||||
|
{
|
||||||
this->prevMsg_.append(message);
|
this->prevMsg_.append(message);
|
||||||
|
}
|
||||||
|
|
||||||
event->accept();
|
event->accept();
|
||||||
if (!(event->modifiers() == Qt::ControlModifier))
|
if (!(event->modifiers() == Qt::ControlModifier))
|
||||||
|
|
Loading…
Reference in a new issue