From b6c6c03f879f282110b08a2d41a5cac143ff41aa Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 13 Apr 2021 04:33:19 -0400 Subject: pass message object through signal instead of just the id --- components/chatinputindicator.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/chatinputindicator.hpp') diff --git a/components/chatinputindicator.hpp b/components/chatinputindicator.hpp index 46ca5f1..3b007b3 100644 --- a/components/chatinputindicator.hpp +++ b/components/chatinputindicator.hpp @@ -1,7 +1,7 @@ #pragma once #include #include -#include "../discord/snowflake.hpp" +#include "../discord/message.hpp" #include "../discord/user.hpp" class ChatInputIndicator : public Gtk::Box { @@ -14,7 +14,7 @@ public: private: void AddUser(Snowflake channel_id, const UserData &user, int timeout); void OnUserTypingStart(Snowflake user_id, Snowflake channel_id); - void OnMessageCreate(Snowflake message_id); + void OnMessageCreate(const Message &message); void SetTypingString(const Glib::ustring &str); void ComputeTypingString(); -- cgit v1.2.3