summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-10-03 16:05:31 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-10-03 16:05:31 -0400
commit9394ac9b93b718bf93c5678c2af484799980dc49 (patch)
tree4a0de93acfcc9d9716b37e6910634e7b00d9840f /src
parent05acb8c857c923391a651f38018204b5dc35e39d (diff)
downloadabaddon-portaudio-9394ac9b93b718bf93c5678c2af484799980dc49.tar.gz
abaddon-portaudio-9394ac9b93b718bf93c5678c2af484799980dc49.zip
support voice text channels
Diffstat (limited to 'src')
-rw-r--r--src/components/channels.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/channels.cpp b/src/components/channels.cpp
index dbd0aed..a5747dc 100644
--- a/src/components/channels.cpp
+++ b/src/components/channels.cpp
@@ -58,7 +58,7 @@ ChannelList::ChannelList()
}
}
- if (type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread) {
+ if (type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread || type == RenderType::VoiceChannel) {
const auto id = static_cast<Snowflake>(row[m_columns.m_id]);
m_signal_action_channel_item_select.emit(id);
Abaddon::Get().GetDiscordClient().MarkChannelAsRead(id, [](...) {});
@@ -784,7 +784,7 @@ bool ChannelList::SelectionFunc(const Glib::RefPtr<Gtk::TreeModel> &model, const
m_last_selected = m_model->get_path(row);
auto type = (*m_model->get_iter(path))[m_columns.m_type];
- return type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread;
+ return type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread || type == RenderType::VoiceChannel;
}
void ChannelList::AddPrivateChannels() {