diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-15 02:35:36 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-15 02:35:36 -0400 |
commit | cd8cd97c9b1fb297f4bf455135d0e0e690358c53 (patch) | |
tree | 1ae78c800072bb8154596566b1898ba232e9422c /components/chatwindow.hpp | |
parent | 0aaebf9ea77eede8a347aa71b95e86686d04a854 (diff) | |
parent | f5df43194e19be7995d753c5e9dd0a5a9365f24a (diff) | |
download | abaddon-portaudio-cd8cd97c9b1fb297f4bf455135d0e0e690358c53.tar.gz abaddon-portaudio-cd8cd97c9b1fb297f4bf455135d0e0e690358c53.zip |
Merge branch 'slowmode'
Diffstat (limited to 'components/chatwindow.hpp')
-rw-r--r-- | components/chatwindow.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/chatwindow.hpp b/components/chatwindow.hpp index f8336dd..1226d7e 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); @@ -53,7 +54,7 @@ protected: void ScrollToBottom(); bool m_should_scroll_to_bottom = true; - void OnMessageSendFail(const std::string &nonce); + void OnMessageSendFail(const std::string &nonce, float retry_after); Gtk::Box *m_main; Gtk::ListBox *m_list; @@ -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<void, Snowflake, Snowflake> type_signal_action_message_delete; |