mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
parent
eb04e1c3df
commit
a7487ab43e
|
@ -143,7 +143,8 @@ void Channel::addOrReplaceTimeout(MessagePtr message)
|
|||
if (s->flags.hasNone({MessageFlag::Timeout, MessageFlag::Untimeout}) &&
|
||||
s->loginName == message->timeoutUser) {
|
||||
// FOURTF: disabled for now
|
||||
// s->flags.EnableFlag(MessageFlag::Disabled);
|
||||
// PAJLADA: Shitty solution described in Message.hpp
|
||||
s->flags.set(MessageFlag::Disabled);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,13 @@ struct Message : boost::noncopyable {
|
|||
Message();
|
||||
~Message();
|
||||
|
||||
MessageFlags flags;
|
||||
// Making this a mutable means that we can update a messages flags,
|
||||
// while still keeping Message constant. This means that a message's flag
|
||||
// can be updated without the renderer being made aware, which might be bad.
|
||||
// This is a temporary effort until we can figure out what the right
|
||||
// const-correct way to deal with this is.
|
||||
// This might bring race conditions with it
|
||||
mutable MessageFlags flags;
|
||||
QTime parseTime;
|
||||
QString id;
|
||||
QString searchText;
|
||||
|
|
Loading…
Reference in a new issue