compile oopsy

This commit is contained in:
ouwou
2022-05-06 04:13:29 -04:00
parent 2c25319fb8
commit f6fdfeb95f

View File

@@ -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