diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-24 04:23:28 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-24 04:23:28 -0400 |
commit | 3deb2b10020529ac36cf7ab298e0be425887c88f (patch) | |
tree | 830aef6c51d3bc523ca196a470b43673d2e2efd8 /components | |
parent | a120cbda2cf0a247d5189e12d93c0c4c40503910 (diff) | |
download | abaddon-portaudio-3deb2b10020529ac36cf7ab298e0be425887c88f.tar.gz abaddon-portaudio-3deb2b10020529ac36cf7ab298e0be425887c88f.zip |
basic handling of CALL messages
Diffstat (limited to 'components')
-rw-r--r-- | components/chatmessage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index 4d38806..03398dd 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -274,6 +274,9 @@ 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() + " has added <b>" + Glib::Markup::escape_text(data->Content) + "</b> to this channel. Its most important updates will show up here.</span></i>"); } break; + case MessageType::CALL: { + b->insert_markup(s, "<span color='#999999'><i>[started a call]</i></span>"); + } break; default: break; } } |