From 1fb7ca000753d2c6a39a560126f3ba7d229af46d Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 16 Dec 2021 00:58:17 -0500 Subject: hide unread indicator for muted channels --- src/discord/discord.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/discord/discord.hpp') diff --git a/src/discord/discord.hpp b/src/discord/discord.hpp index 4dc9520..fbee775 100644 --- a/src/discord/discord.hpp +++ b/src/discord/discord.hpp @@ -184,6 +184,7 @@ public: void UpdateToken(std::string token); void SetUserAgent(std::string agent); + bool IsChannelMuted(Snowflake id) const noexcept; bool IsGuildMuted(Snowflake id) const noexcept; int GetUnreadStateForChannel(Snowflake id) const noexcept; @@ -280,6 +281,7 @@ private: std::map> m_thread_members; std::map m_last_message_id; std::unordered_set m_muted_guilds; + std::unordered_set m_muted_channels; std::unordered_map m_unread; UserData m_user_data; -- cgit v1.2.3