From 5394c67079deaca5e89a4553187e26e29be0d23c Mon Sep 17 00:00:00 2001
From: ouwou <26526779+ouwou@users.noreply.github.com>
Date: Wed, 28 Apr 2021 22:00:40 -0400
Subject: handle discovery-related message types
---
components/chatmessage.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'components/chatmessage.cpp')
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, "[started a call]");
} break;
+ case MessageType::GUILD_DISCOVERY_DISQUALIFIED: {
+ b->insert_markup(s, "This server has been removed from Server Discovery because it no longer passes all the requirements.");
+ } break;
+ case MessageType::GUILD_DISCOVERY_REQUALIFIED: {
+ b->insert_markup(s, "This server is eligible for Server Discovery again and has been automatically relisted!");
+ } break;
+ case MessageType::GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING: {
+ b->insert_markup(s, "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.");
+ } break;
+ case MessageType::GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING: {
+ b->insert_markup(s, "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.");
+ } break;
default: break;
}
}
--
cgit v1.2.3