From f69b0e61558680d9fdcaafd5c184b2c45fc06fce Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 4 Sep 2020 00:48:38 -0400 Subject: pass around snowflake instead of MessageData --- windows/mainwindow.cpp | 2 +- windows/mainwindow.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'windows') diff --git a/windows/mainwindow.cpp b/windows/mainwindow.cpp index 67e33fb..a714c1a 100644 --- a/windows/mainwindow.cpp +++ b/windows/mainwindow.cpp @@ -131,7 +131,7 @@ void MainWindow::UpdateChatMessageEditContent(Snowflake id, Snowflake channel_id m_chat.UpdateMessageContent(id); } -void MainWindow::UpdateChatPrependHistory(const std::vector &msgs) { +void MainWindow::UpdateChatPrependHistory(const std::vector &msgs) { m_chat.AddNewHistory(msgs); } diff --git a/windows/mainwindow.hpp b/windows/mainwindow.hpp index b4db516..9cd329f 100644 --- a/windows/mainwindow.hpp +++ b/windows/mainwindow.hpp @@ -18,7 +18,7 @@ public: void UpdateChatNewMessage(Snowflake id); void UpdateChatMessageDeleted(Snowflake id, Snowflake channel_id); void UpdateChatMessageEditContent(Snowflake id, Snowflake channel_id); - void UpdateChatPrependHistory(const std::vector &msgs); + void UpdateChatPrependHistory(const std::vector &msgs); protected: Gtk::Box m_main_box; -- cgit v1.2.3