diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-09 23:59:40 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-09 23:59:40 -0400 |
commit | 6ae9cc915d8bba9415910f4c9745e1158a7e1f68 (patch) | |
tree | 0ebce2462d4358be0f322e05726cf4a2de666293 /components/chatwindow.cpp | |
parent | 51cf8fd2df3cf7a602d05540627a5ad8af6baa58 (diff) | |
download | abaddon-portaudio-6ae9cc915d8bba9415910f4c9745e1158a7e1f68.tar.gz abaddon-portaudio-6ae9cc915d8bba9415910f4c9745e1158a7e1f68.zip |
MessageData -> Message (whoops)
Diffstat (limited to 'components/chatwindow.cpp')
-rw-r--r-- | components/chatwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp index 978704f..42e0a2c 100644 --- a/components/chatwindow.cpp +++ b/components/chatwindow.cpp @@ -82,7 +82,7 @@ Snowflake ChatWindow::GetActiveChannel() const { return m_active_channel; } -ChatDisplayType ChatWindow::GetMessageDisplayType(const MessageData *data) { +ChatDisplayType ChatWindow::GetMessageDisplayType(const Message *data) { if (data->Type == MessageType::DEFAULT && data->Content.size() > 0) return ChatDisplayType::Text; else if (data->Type == MessageType::DEFAULT && data->Embeds.size() > 0) @@ -91,7 +91,7 @@ ChatDisplayType ChatWindow::GetMessageDisplayType(const MessageData *data) { return ChatDisplayType::Unknown; } -void ChatWindow::ProcessMessage(const MessageData *data, bool prepend) { +void ChatWindow::ProcessMessage(const Message *data, bool prepend) { if (!Abaddon::Get().GetDiscordClient().IsStarted()) return; ChatMessageContainer *last_row = nullptr; @@ -307,7 +307,7 @@ void ChatWindow::SetMessagesInternal() { } // sort - std::map<Snowflake, const MessageData *> sorted_messages; + std::map<Snowflake, const Message *> sorted_messages; for (const auto id : *msgs) sorted_messages[id] = Abaddon::Get().GetDiscordClient().GetMessage(id); |