#include "channel.hpp" #include "emotemanager.hpp" #include "ircmanager.hpp" #include "logging/loggingmanager.hpp" #include "messages/message.hpp" #include "windowmanager.hpp" #include #include #include #include #include #include #include #include using namespace chatterino::messages; namespace chatterino { Channel::Channel() // , _loggingChannel(logging::get(_name)) { } bool Channel::isEmpty() const { return false; } messages::LimitedQueueSnapshot Channel::getMessageSnapshot() { return _messages.getSnapshot(); } void Channel::addMessage(std::shared_ptr message) { std::shared_ptr deleted; // if (_loggingChannel.get() != nullptr) { // _loggingChannel->append(message); // } if (_messages.appendItem(message, deleted)) { messageRemovedFromStart(deleted); } this->messageAppended(message); } bool Channel::canSendMessage() const { return false; } void Channel::sendMessage(const QString &message) { } } // namespace chatterino