diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-01 17:15:34 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-01 17:15:34 -0500 |
commit | 8efa2024582b0a2aeda72f3e6865a4562717eabc (patch) | |
tree | 7629c0502bd06a377513424e9ddf7b068e3e43eb /components | |
parent | 77b187bd643fcf05f77a1a2524a9aadc8a4c2e03 (diff) | |
download | abaddon-portaudio-8efa2024582b0a2aeda72f3e6865a4562717eabc.tar.gz abaddon-portaudio-8efa2024582b0a2aeda72f3e6865a4562717eabc.zip |
show news channels
Diffstat (limited to 'components')
-rw-r--r-- | components/channels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int, const Channel *> orphan_channels; std::unordered_map<Snowflake, std::vector<const Channel *>> 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); |