From 4b7cdbd129cedd4029c2b99c85146ad5e07e9732 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 20 Sep 2020 01:12:54 -0400 Subject: improve MESSAGE_UPDATE handling (hopefully) --- components/chatwindow.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/chatwindow.hpp') diff --git a/components/chatwindow.hpp b/components/chatwindow.hpp index ba71d2b..570299d 100644 --- a/components/chatwindow.hpp +++ b/components/chatwindow.hpp @@ -18,7 +18,7 @@ public: void AddNewMessage(Snowflake id); void AddNewHistory(const std::vector &msgs); void DeleteMessage(Snowflake id); - void UpdateMessageContent(Snowflake id); + void UpdateMessage(Snowflake id); void Clear(); void InsertChatInput(std::string text); Snowflake GetOldestListedMessage(); @@ -29,8 +29,9 @@ protected: void AddNewMessageInternal(); void AddNewHistoryInternal(); void DeleteMessageInternal(); - void UpdateMessageContentInternal(); + void UpdateMessageInternal(); ChatDisplayType GetMessageDisplayType(const Message *data); + ChatMessageItem *CreateMessageComponent(const Message *data); void ProcessMessage(const Message *data, bool prepend = false); int m_num_rows = 0; // youd think thered be a Gtk::ListBox::get_row_count or something but nope std::unordered_map m_id_to_widget; -- cgit v1.2.3