diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-03-26 02:58:59 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-03-26 02:58:59 -0400 |
commit | a0b3c9f8a4f8d2c39258d4c142f8604423576d91 (patch) | |
tree | 841155a65b439b61a5c58c1f64878152c20d4f51 /src/components/chatmessage.hpp | |
parent | 481685b3bbb2b0270870dec5de87e60fc2d84d15 (diff) | |
parent | a2a45757e917aa97e71cf0b84a01dc843759a5f6 (diff) | |
download | abaddon-portaudio-a0b3c9f8a4f8d2c39258d4c142f8604423576d91.tar.gz abaddon-portaudio-a0b3c9f8a4f8d2c39258d4c142f8604423576d91.zip |
Merge branch 'master' into msys
Diffstat (limited to 'src/components/chatmessage.hpp')
-rw-r--r-- | src/components/chatmessage.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/chatmessage.hpp b/src/components/chatmessage.hpp index 8b69117..5e213ee 100644 --- a/src/components/chatmessage.hpp +++ b/src/components/chatmessage.hpp @@ -22,6 +22,7 @@ protected: void AddClickHandler(Gtk::Widget *widget, std::string); Gtk::TextView *CreateTextComponent(const Message &data); // Message.Content void UpdateTextComponent(Gtk::TextView *tv); + Gtk::Widget *CreateEmbedsComponent(const std::vector<EmbedData> &embeds); Gtk::Widget *CreateEmbedComponent(const EmbedData &data); // Message.Embeds[0] Gtk::Widget *CreateImageComponent(const std::string &proxy_url, const std::string &url, int inw, int inh); Gtk::Widget *CreateAttachmentComponent(const AttachmentData &data); // non-image attachments @@ -34,7 +35,8 @@ protected: static bool IsEmbedImageOnly(const EmbedData &data); - void HandleUserMentions(Glib::RefPtr<Gtk::TextBuffer> buf); + void HandleRoleMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf); + void HandleUserMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf); void HandleStockEmojis(Gtk::TextView &tv); void HandleCustomEmojis(Gtk::TextView &tv); void HandleEmojis(Gtk::TextView &tv); @@ -89,11 +91,12 @@ public: ChatMessageHeader(const Message &data); void AddContent(Gtk::Widget *widget, bool prepend); - void UpdateNameColor(); + void UpdateName(); std::vector<Gtk::Widget *> GetChildContent(); protected: void AttachUserMenuHandler(Gtk::Widget &widget); + static Glib::ustring GetEscapedDisplayName(const UserData &user, const std::optional<GuildMember> &member); bool on_author_button_press(GdkEventButton *ev); |