diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-10-05 21:37:07 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-10-05 21:37:07 -0400 |
commit | 0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c (patch) | |
tree | c340566dbccc77d2d3cb21b1290e01e5c1c0d9c4 /abaddon.cpp | |
parent | cfcb0d4e662b960dcdd331a7c61dc2b9c614f930 (diff) | |
download | abaddon-portaudio-0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c.tar.gz abaddon-portaudio-0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c.zip |
slap a bunch of shit everywhere until the crashing stops
Diffstat (limited to 'abaddon.cpp')
-rw-r--r-- | abaddon.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/abaddon.cpp b/abaddon.cpp index 2c8a839..0c4575a 100644 --- a/abaddon.cpp +++ b/abaddon.cpp @@ -249,11 +249,10 @@ void Abaddon::ActionListChannelItemClick(Snowflake id) { m_main_window->UpdateChatActiveChannel(id); if (m_channels_requested.find(id) == m_channels_requested.end()) { m_discord.FetchMessagesInChannel(id, [this, id](const std::vector<Snowflake> &msgs) { - if (msgs.size() > 0) { + if (msgs.size() > 0) m_oldest_listed_message[id] = msgs.back(); - m_main_window->UpdateChatWindowContents(); - } + m_main_window->UpdateChatWindowContents(); m_channels_requested.insert(id); }); } else { |