diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-28 22:00:40 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-28 22:00:40 -0400 |
commit | 5394c67079deaca5e89a4553187e26e29be0d23c (patch) | |
tree | 6d3e243ce231378598b5e607e34ae480f559930c /components | |
parent | 3421f463206bebee8321437048a6dc5f47333279 (diff) | |
download | abaddon-portaudio-5394c67079deaca5e89a4553187e26e29be0d23c.tar.gz abaddon-portaudio-5394c67079deaca5e89a4553187e26e29be0d23c.zip |
handle discovery-related message types
Diffstat (limited to 'components')
-rw-r--r-- | components/chatmessage.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index 03398dd..68d2359 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -277,6 +277,18 @@ void ChatMessageItemContainer::UpdateTextComponent(Gtk::TextView *tv) { case MessageType::CALL: { b->insert_markup(s, "<span color='#999999'><i>[started a call]</i></span>"); } break; + case MessageType::GUILD_DISCOVERY_DISQUALIFIED: { + b->insert_markup(s, "<i><span color='#999999'>This server has been removed from Server Discovery because it no longer passes all the requirements.</span></i>"); + } break; + case MessageType::GUILD_DISCOVERY_REQUALIFIED: { + b->insert_markup(s, "<i><span color='#999999'>This server is eligible for Server Discovery again and has been automatically relisted!</span></i>"); + } break; + case MessageType::GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING: { + b->insert_markup(s, "<i><span color='#999999'>This server has failed Discovery activity requirements for 1 week. If this server fails for 4 weeks in a row, it will be automatically removed from Discovery.</span></i>"); + } break; + case MessageType::GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING: { + b->insert_markup(s, "<i><span color='#999999'>This server has failed Discovery activity requirements for 3 weeks in a row. If this server fails for 1 more week, it will be removed from Discovery.</span></i>"); + } break; default: break; } } |