dont try to open channels if they arent in store

This commit is contained in:
ouwou 2021-08-24 01:18:37 -04:00
parent 04ebd069b4
commit af0cbcf2c1

View File

@ -454,6 +454,7 @@ void Abaddon::ActionChannelOpened(Snowflake id) {
if (id == m_main_window->GetChatActiveChannel()) return;
const auto channel = m_discord.GetChannel(id);
if (!channel.has_value()) return;
if (channel->Type == ChannelType::GUILD_TEXT || channel->Type == ChannelType::GUILD_NEWS)
m_main_window->set_title(std::string(APP_TITLE) + " - #" + *channel->Name);
else {