summaryrefslogtreecommitdiff
path: root/src/components/channels.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-01-03 19:01:33 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2023-01-03 19:01:33 -0500
commit4740965f4c1ee879a733b4068f4026a0dfa626fd (patch)
treebf3f3e4cbac1e63fe9ef4f5191e553e8ce615fd7 /src/components/channels.cpp
parent6ff2563e36eac4f90ba241df3937980abd73c579 (diff)
downloadabaddon-portaudio-4740965f4c1ee879a733b4068f4026a0dfa626fd.tar.gz
abaddon-portaudio-4740965f4c1ee879a733b4068f4026a0dfa626fd.zip
rewrite DiscordVoiceClient and stuff
Diffstat (limited to 'src/components/channels.cpp')
-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 a36b215..09e40c3 100644
--- a/src/components/channels.cpp
+++ b/src/components/channels.cpp
@@ -1019,7 +1019,7 @@ void ChannelList::OnVoiceChannelSubmenuPopup() {
if (!iter) return;
const auto id = static_cast<Snowflake>((*iter)[m_columns.m_id]);
auto &discord = Abaddon::Get().GetDiscordClient();
- if (discord.IsConnectedToVoice()) {
+ if (discord.IsVoiceConnected() || discord.IsVoiceConnecting()) {
m_menu_voice_channel_join.set_sensitive(false);
m_menu_voice_channel_disconnect.set_sensitive(discord.GetVoiceChannelID() == id);
} else {
@@ -1040,7 +1040,7 @@ void ChannelList::OnDMSubmenuPopup() {
m_menu_dm_toggle_mute.set_label("Mute");
#ifdef WITH_VOICE
- if (discord.IsConnectedToVoice()) {
+ if (discord.IsVoiceConnected() || discord.IsVoiceConnecting()) {
m_menu_dm_join_voice.set_sensitive(false);
m_menu_dm_disconnect_voice.set_sensitive(discord.GetVoiceChannelID() == id);
} else {