mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
do not disable whispers on timeout
changed order to short-out the if clause when its not the correct user of the message
This commit is contained in:
parent
1a1d0f305c
commit
d6c5dd6d6c
|
@ -154,8 +154,9 @@ void Channel::addOrReplaceTimeout(MessagePtr message)
|
||||||
for (int i = 0; i < snapshotLength; i++)
|
for (int i = 0; i < snapshotLength; i++)
|
||||||
{
|
{
|
||||||
auto &s = snapshot[i];
|
auto &s = snapshot[i];
|
||||||
if (s->flags.hasNone({MessageFlag::Timeout, MessageFlag::Untimeout}) &&
|
if (s->loginName == message->timeoutUser &&
|
||||||
s->loginName == message->timeoutUser)
|
s->flags.hasNone({MessageFlag::Timeout, MessageFlag::Untimeout,
|
||||||
|
MessageFlag::Whisper}))
|
||||||
{
|
{
|
||||||
// FOURTF: disabled for now
|
// FOURTF: disabled for now
|
||||||
// PAJLADA: Shitty solution described in Message.hpp
|
// PAJLADA: Shitty solution described in Message.hpp
|
||||||
|
|
Loading…
Reference in a new issue