summaryrefslogtreecommitdiff
path: root/src/components/channellist/channellisttree.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-05-21 02:12:28 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2024-05-21 02:12:28 -0400
commitead06ca864714e6804344da37da2f74230bfa39b (patch)
tree4931504ad28ebd0d981c45d97258db4461a4aa2d /src/components/channellist/channellisttree.cpp
parent057dd2a1f8de65e4885f48211e324e1b966f4e2f (diff)
downloadabaddon-portaudio-ead06ca864714e6804344da37da2f74230bfa39b.tar.gz
abaddon-portaudio-ead06ca864714e6804344da37da2f74230bfa39b.zip
fix cringe
Diffstat (limited to 'src/components/channellist/channellisttree.cpp')
-rw-r--r--src/components/channellist/channellisttree.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/channellist/channellisttree.cpp b/src/components/channellist/channellisttree.cpp
index 3b11485..ebbed58 100644
--- a/src/components/channellist/channellisttree.cpp
+++ b/src/components/channellist/channellisttree.cpp
@@ -535,7 +535,11 @@ void ChannelListTree::UpdateCreateChannel(const ChannelData &channel) {
auto iter = GetIteratorForGuildFromID(*channel.GuildID);
channel_row = *m_model->append(iter->children());
}
+#ifdef WITH_VOICE
channel_row[m_columns.m_type] = IsTextChannel(channel.Type) ? RenderType::TextChannel : RenderType::VoiceChannel;
+#else
+ channel_row[m_columns.m_type] = RenderType::TextChannel;
+#endif
channel_row[m_columns.m_id] = channel.ID;
channel_row[m_columns.m_name] = "#" + Glib::Markup::escape_text(*channel.Name);
channel_row[m_columns.m_nsfw] = channel.NSFW();