diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/abaddon.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/abaddon.cpp b/src/abaddon.cpp index d759426..0f4658a 100644 --- a/src/abaddon.cpp +++ b/src/abaddon.cpp @@ -725,19 +725,7 @@ void Abaddon::ActionChannelOpened(Snowflake id, bool expand_to) { const bool can_access = channel->IsDM() || m_discord.HasChannelPermission(m_discord.GetUserData().ID, id, Permission::VIEW_CHANNEL); - if (channel->Type == ChannelType::GUILD_TEXT || channel->Type == ChannelType::GUILD_NEWS) - m_main_window->set_title(std::string(APP_TITLE) + " - #" + *channel->Name); - else { - std::string display; - const auto recipients = channel->GetDMRecipients(); - if (recipients.size() > 1) - display = std::to_string(recipients.size()) + " users"; - else if (recipients.size() == 1) - display = recipients[0].Username; - else - display = "Empty group"; - m_main_window->set_title(std::string(APP_TITLE) + " - " + display); - } + m_main_window->set_title(std::string(APP_TITLE) + " - " + channel->GetDisplayName()); m_main_window->UpdateChatActiveChannel(id, expand_to); if (m_channels_requested.find(id) == m_channels_requested.end()) { // dont fire requests we know will fail |