From efc97aa2b0d7a4d63a2e6219070919559a0cf64d Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 10 Jun 2021 15:27:32 -0400 Subject: reduce db access + refactor --- components/chatwindow.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/chatwindow.hpp') diff --git a/components/chatwindow.hpp b/components/chatwindow.hpp index db3d2fc..e6280f6 100644 --- a/components/chatwindow.hpp +++ b/components/chatwindow.hpp @@ -19,12 +19,12 @@ public: Snowflake GetActiveChannel() const; void Clear(); - void SetMessages(const std::set &msgs); // clear contents and replace with given set + void SetMessages(const std::vector &msgs); // clear contents and replace with given set void SetActiveChannel(Snowflake id); - void AddNewMessage(Snowflake id); // append new message to bottom + void AddNewMessage(const Message &data); // append new message to bottom void DeleteMessage(Snowflake id); // add [deleted] indicator void UpdateMessage(Snowflake id); // add [edited] indicator - void AddNewHistory(const std::vector &id); // prepend messages + void AddNewHistory(const std::vector &msgs); // prepend messages void InsertChatInput(std::string text); Snowflake GetOldestListedMessage(); // oldest message that is currently in the ListBox void UpdateReactions(Snowflake id); -- cgit v1.2.3