diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-05-06 04:13:29 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-05-06 04:13:29 -0400 |
commit | f6fdfeb95fd1042cdf6b33a3b82026d6d4723826 (patch) | |
tree | 1c5294cc2df8681a042382d4b8172590bcfc9fd3 /src | |
parent | 2c25319fb85e077f27c3a4cd0bfdc8f503c6020d (diff) | |
download | abaddon-portaudio-f6fdfeb95fd1042cdf6b33a3b82026d6d4723826.tar.gz abaddon-portaudio-f6fdfeb95fd1042cdf6b33a3b82026d6d4723826.zip |
compile oopsy
Diffstat (limited to 'src')
-rw-r--r-- | src/components/channels.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/channels.cpp b/src/components/channels.cpp index 4e2e4df..0a49701 100644 --- a/src/components/channels.cpp +++ b/src/components/channels.cpp @@ -932,8 +932,10 @@ void ChannelList::OnChannelSubmenuPopup() { if (!iter) return; const auto id = static_cast<Snowflake>((*iter)[m_columns.m_id]); auto &discord = Abaddon::Get().GetDiscordClient(); +#ifdef WITH_LIBHANDY const auto perms = discord.HasChannelPermission(discord.GetUserData().ID, id, Permission::VIEW_CHANNEL); m_menu_channel_open_tab.set_sensitive(perms); +#endif if (discord.IsChannelMuted(id)) m_menu_channel_toggle_mute.set_label("Unmute"); else |