From 8efa2024582b0a2aeda72f3e6865a4562717eabc Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 1 Nov 2020 17:15:34 -0500 Subject: show news channels --- components/channels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/channels.cpp b/components/channels.cpp index a8f2f66..629ca28 100644 --- a/components/channels.cpp +++ b/components/channels.cpp @@ -369,7 +369,7 @@ void ChannelList::UpdateCreateChannel(Snowflake id) { } ChannelListRow *row; - if (data->Type == ChannelType::GUILD_TEXT) { + if (data->Type == ChannelType::GUILD_TEXT || data->Type == ChannelType::GUILD_NEWS) { row = Gtk::manage(new ChannelListRowChannel(data)); } else if (data->Type == ChannelType::GUILD_CATEGORY) { row = Gtk::manage(new ChannelListRowCategory(data)); @@ -478,7 +478,7 @@ void ChannelList::InsertGuildAt(Snowflake id, int pos) { std::map orphan_channels; std::unordered_map> cat_to_channels; for (const auto &channel : guild_data->Channels) { - if (channel.Type != ChannelType::GUILD_TEXT) continue; + if (channel.Type != ChannelType::GUILD_TEXT && channel.Type != ChannelType::GUILD_NEWS) continue; if (channel.ParentID.IsValid()) cat_to_channels[channel.ParentID].push_back(&channel); -- cgit v1.2.3