forked from OpenGamers/abaddon
temp mindeps build fix
This commit is contained in:
@@ -58,7 +58,11 @@ ChannelList::ChannelList()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_VOICE
|
||||||
if (type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread || type == RenderType::VoiceChannel) {
|
if (type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread || type == RenderType::VoiceChannel) {
|
||||||
|
#else
|
||||||
|
if (type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread) {
|
||||||
|
#endif
|
||||||
const auto id = static_cast<Snowflake>(row[m_columns.m_id]);
|
const auto id = static_cast<Snowflake>(row[m_columns.m_id]);
|
||||||
m_signal_action_channel_item_select.emit(id);
|
m_signal_action_channel_item_select.emit(id);
|
||||||
Abaddon::Get().GetDiscordClient().MarkChannelAsRead(id, [](...) {});
|
Abaddon::Get().GetDiscordClient().MarkChannelAsRead(id, [](...) {});
|
||||||
@@ -784,7 +788,11 @@ bool ChannelList::SelectionFunc(const Glib::RefPtr<Gtk::TreeModel> &model, const
|
|||||||
m_last_selected = m_model->get_path(row);
|
m_last_selected = m_model->get_path(row);
|
||||||
|
|
||||||
auto type = (*m_model->get_iter(path))[m_columns.m_type];
|
auto type = (*m_model->get_iter(path))[m_columns.m_type];
|
||||||
|
#ifdef WITH_VOICE
|
||||||
return type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread || type == RenderType::VoiceChannel;
|
return type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread || type == RenderType::VoiceChannel;
|
||||||
|
#else
|
||||||
|
return type == RenderType::TextChannel || type == RenderType::DM || type == RenderType::Thread;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelList::AddPrivateChannels() {
|
void ChannelList::AddPrivateChannels() {
|
||||||
|
|||||||
Reference in New Issue
Block a user