handle CHANNEL_ICON_CHANGE message

This commit is contained in:
ouwou
2021-04-24 03:46:57 -04:00
parent 687a336bc9
commit 71d314ebc3
2 changed files with 7 additions and 3 deletions

View File

@@ -258,6 +258,10 @@ void ChatMessageItemContainer::UpdateTextComponent(Gtk::TextView *tv) {
const auto author = Abaddon::Get().GetDiscordClient().GetUser(data->Author.ID);
b->insert_markup(s, "<i><span color='#999999'>" + author->GetEscapedBoldName() + " changed the name to <b>" + Glib::Markup::escape_text(data->Content) + "</b></span></i>");
} break;
case MessageType::CHANNEL_ICON_CHANGE: {
const auto author = Abaddon::Get().GetDiscordClient().GetUser(data->Author.ID);
b->insert_markup(s, "<i><span color='#999999'>" + author->GetEscapedBoldName() + " changed the channel icon</span></i>");
} break;
default: break;
}
}