join/leave guild updates without reloading entire channel list

This commit is contained in:
ouwou
2020-10-13 23:56:00 -04:00
parent ae85d7e441
commit 49a6e58137
5 changed files with 195 additions and 119 deletions

View File

@@ -116,6 +116,14 @@ void MainWindow::UpdateChannelListing() {
m_channel_list.UpdateListing();
}
void MainWindow::UpdateChannelsNewGuild(Snowflake id) {
m_channel_list.UpdateNewGuild(id);
}
void MainWindow::UpdateChannelsRemoveGuild(Snowflake id) {
m_channel_list.UpdateRemoveGuild(id);
}
void MainWindow::UpdateChatWindowContents() {
auto &discord = Abaddon::Get().GetDiscordClient();
auto allmsgs = discord.GetMessagesForChannel(m_chat.GetActiveChannel());