handle CHANNEL_ICON_CHANGE message

This commit is contained in:
ouwou committed 2021-04-24 03:46:57 -04:00
1 parent 687a336bc9
commit 71d314ebc3
2 files changed
+7 -3

No files matched your search

+4
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;
}
}