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 --- windows/mainwindow.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'windows/mainwindow.hpp') diff --git a/windows/mainwindow.hpp b/windows/mainwindow.hpp index 3ae7c0f..30fd3de 100644 --- a/windows/mainwindow.hpp +++ b/windows/mainwindow.hpp @@ -21,10 +21,10 @@ public: void UpdateChatWindowContents(); void UpdateChatActiveChannel(Snowflake id); Snowflake GetChatActiveChannel() const; - void UpdateChatNewMessage(Snowflake id); + void UpdateChatNewMessage(const Message &data); void UpdateChatMessageDeleted(Snowflake id, Snowflake channel_id); void UpdateChatMessageUpdated(Snowflake id, Snowflake channel_id); - void UpdateChatPrependHistory(const std::vector &msgs); + void UpdateChatPrependHistory(const std::vector &msgs); void InsertChatInput(std::string text); Snowflake GetChatOldestListedMessage(); void UpdateChatReactionAdd(Snowflake id, const Glib::ustring ¶m); -- cgit v1.2.3