From 9733ae54c386f347e338c7854869ba2e57b113cb Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 14 Apr 2021 02:11:36 -0400 Subject: update rate limit indicator on failed message send this happens when you start the client while already rate-limited --- components/chatwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/chatwindow.cpp') diff --git a/components/chatwindow.cpp b/components/chatwindow.cpp index 51f5985..1a2bb48 100644 --- a/components/chatwindow.cpp +++ b/components/chatwindow.cpp @@ -365,7 +365,7 @@ void ChatWindow::ScrollToBottom() { x->set_value(x->get_upper()); } -void ChatWindow::OnMessageSendFail(const std::string &nonce) { +void ChatWindow::OnMessageSendFail(const std::string &nonce, float retry_after) { for (auto [id, widget] : m_id_to_widget) { if (auto *container = dynamic_cast(widget); container->Nonce == nonce) { container->SetFailed(); -- cgit v1.2.3