parse user mentions a better way

This commit is contained in:
ouwou
2020-10-12 20:20:37 -04:00
parent f5ae8c3d3f
commit c09a36d75c
2 changed files with 38 additions and 22 deletions

View File

@@ -26,9 +26,7 @@ protected:
Gtk::Box *CreateAttachmentComponent(const AttachmentData &data); // non-image attachments
void HandleImage(const AttachmentData &data, Gtk::Image *img, std::string url);
// expects content run through Glib::Markup::escape_text
std::string ParseMessageContent(std::string content);
std::string ParseMentions(std::string content);
void HandleUserMentions(Gtk::TextView *tv);
void HandleChannelMentions(Gtk::TextView *tv);
bool OnClickChannel(GdkEventButton *ev);