From 5b7d36bb7438f32b56d6ebdf043ee291332060f1 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 28 Aug 2020 18:21:08 -0400 Subject: scroll up to load more messages --- abaddon.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'abaddon.hpp') diff --git a/abaddon.hpp b/abaddon.hpp index 87aebcf..5886944 100644 --- a/abaddon.hpp +++ b/abaddon.hpp @@ -26,6 +26,7 @@ public: void ActionCopyGuildID(Snowflake id); void ActionListChannelItemClick(Snowflake id); void ActionChatInputSubmit(std::string msg, Snowflake channel); + void ActionChatLoadHistory(Snowflake id); std::string GetDiscordToken() const; bool IsDiscordActive() const; @@ -38,7 +39,11 @@ public: private: DiscordClient m_discord; std::string m_discord_token; + // todo make these map snowflake to attribs std::unordered_set m_channels_requested; + std::unordered_set m_channels_history_loaded; + std::unordered_map m_oldest_listed_message; + std::unordered_set m_channels_history_loading; mutable std::mutex m_mutex; Glib::RefPtr m_gtk_app; -- cgit v1.2.3