From 422eed92fc87799e2b5fc0b4fdacf7f2733ff3b3 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 13 Apr 2021 04:36:27 -0400 Subject: handle rate limited channels --- components/chatwindow.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'components/chatwindow.hpp') diff --git a/components/chatwindow.hpp b/components/chatwindow.hpp index f8336dd..078c66d 100644 --- a/components/chatwindow.hpp +++ b/components/chatwindow.hpp @@ -9,6 +9,7 @@ class ChatMessageHeader; class ChatMessageItemContainer; class ChatInput; class ChatInputIndicator; +class RateLimitIndicator; class ChatWindow { public: ChatWindow(); @@ -43,7 +44,7 @@ protected: Snowflake m_active_channel; - void OnInputSubmit(const Glib::ustring &text); + bool OnInputSubmit(const Glib::ustring &text); bool OnKeyPressEvent(GdkEventKey *e); void OnScrollEdgeOvershot(Gtk::PositionType pos); @@ -63,6 +64,8 @@ protected: Completer m_completer; ChatInputIndicator *m_input_indicator; + RateLimitIndicator *m_rate_limit_indicator; + Gtk::Box *m_meta; public: typedef sigc::signal type_signal_action_message_delete; -- cgit v1.2.3