grey out historic messages

This commit is contained in:
fourtf 2018-10-21 14:44:59 +02:00
parent e900b10e0c
commit 27ac236115
2 changed files with 4 additions and 4 deletions

View file

@ -48,10 +48,10 @@ namespace {
MessageParseArgs args;
TwitchMessageBuilder builder(channel.get(), privMsg, args);
builder.message().flags.set(MessageFlag::Disabled);
if (!builder.isIgnored())
{
messages.push_back(builder.build());
}
}
return messages;

View file

@ -188,9 +188,7 @@ void SplitInput::installKeyPressedEvent()
{
auto c = this->split_->getChannel();
if (c == nullptr)
{
return;
}
QString message = ui_.textEdit->toPlainText();
@ -202,7 +200,9 @@ void SplitInput::installKeyPressedEvent()
if ((this->prevMsg_.isEmpty() ||
!this->prevMsg_.endsWith(message)) &&
!message.trimmed().isEmpty())
{
this->prevMsg_.append(message);
}
event->accept();
if (!(event->modifiers() == Qt::ControlModifier))