mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
37 lines
787 B
C++
37 lines
787 B
C++
#include "messages/Message.hpp"
|
|
#include "MessageElement.hpp"
|
|
#include "providers/twitch/PubsubActions.hpp"
|
|
#include "util/DebugCount.hpp"
|
|
#include "util/IrcHelpers.hpp"
|
|
|
|
using SBHighlight = chatterino::ScrollbarHighlight;
|
|
|
|
namespace chatterino {
|
|
|
|
Message::Message()
|
|
: parseTime(QTime::currentTime())
|
|
{
|
|
DebugCount::increase("messages");
|
|
}
|
|
|
|
Message::~Message()
|
|
{
|
|
DebugCount::decrease("messages");
|
|
}
|
|
|
|
SBHighlight Message::getScrollBarHighlight() const
|
|
{
|
|
if (this->flags.has(MessageFlag::Highlighted)) {
|
|
return SBHighlight(SBHighlight::Highlight);
|
|
} else if (this->flags.has(MessageFlag::Subscription)) {
|
|
return SBHighlight(SBHighlight::Subscription);
|
|
}
|
|
return SBHighlight();
|
|
}
|
|
|
|
// Static
|
|
namespace {
|
|
|
|
} // namespace
|
|
|
|
} // namespace chatterino
|