summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-11-24 20:31:34 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-11-24 20:31:34 -0500
commit069c22e9cd37158fa50e3fac67d4d6938d173554 (patch)
treea6237bcf5f068d4c5f752cd8c5f46a343823c834 /src/windows
parent8f30bb33a3d79a7207809b35d4a39751e4d53123 (diff)
downloadabaddon-portaudio-069c22e9cd37158fa50e3fac67d4d6938d173554.tar.gz
abaddon-portaudio-069c22e9cd37158fa50e3fac67d4d6938d173554.zip
add fetching private archived threads
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/threadswindow.cpp5
-rw-r--r--src/windows/threadswindow.hpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/windows/threadswindow.cpp b/src/windows/threadswindow.cpp
index 9071d81..c18819b 100644
--- a/src/windows/threadswindow.cpp
+++ b/src/windows/threadswindow.cpp
@@ -129,14 +129,15 @@ ArchivedThreadsList::ArchivedThreadsList(const ChannelData &channel, const Gtk::
return false;
});
- Abaddon::Get().GetDiscordClient().GetArchivedPublicThreads(channel.ID, sigc::mem_fun(*this, &ArchivedThreadsList::OnPublicFetched));
+ Abaddon::Get().GetDiscordClient().GetArchivedPublicThreads(channel.ID, sigc::mem_fun(*this, &ArchivedThreadsList::OnThreadsFetched));
+ Abaddon::Get().GetDiscordClient().GetArchivedPrivateThreads(channel.ID, sigc::mem_fun(*this, &ArchivedThreadsList::OnThreadsFetched));
}
void ArchivedThreadsList::InvalidateFilter() {
m_list.invalidate_filter();
}
-void ArchivedThreadsList::OnPublicFetched(DiscordError code, const ArchivedThreadsResponseData &data) {
+void ArchivedThreadsList::OnThreadsFetched(DiscordError code, const ArchivedThreadsResponseData &data) {
for (const auto &thread : data.Threads) {
auto row = Gtk::manage(new ThreadListRow(thread));
row->show();
diff --git a/src/windows/threadswindow.hpp b/src/windows/threadswindow.hpp
index 0e42414..ebcbd13 100644
--- a/src/windows/threadswindow.hpp
+++ b/src/windows/threadswindow.hpp
@@ -27,7 +27,7 @@ public:
private:
Gtk::ListBox m_list;
- void OnPublicFetched(DiscordError code, const ArchivedThreadsResponseData &data);
+ void OnThreadsFetched(DiscordError code, const ArchivedThreadsResponseData &data);
using type_signal_thread_open = sigc::signal<void, Snowflake>;
type_signal_thread_open m_signal_thread_open;