mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
basic handling of CALL messages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ enum class MessageType {
|
||||
DEFAULT = 0, // yep
|
||||
RECIPIENT_ADD = 1, // yep
|
||||
RECIPIENT_REMOVE = 2, // yep
|
||||
CALL = 3, // nope
|
||||
CALL = 3, // yep (sorta)
|
||||
CHANNEL_NAME_CHANGE = 4, // yep
|
||||
CHANNEL_ICON_CHANGE = 5, // yep
|
||||
CHANNEL_PINNED_MESSAGE = 6, // yep
|
||||
|
||||
Reference in New Issue
Block a user