update rate limit indicator on failed message send

this happens when you start the client while already rate-limited
This commit is contained in:
ouwou committed 2021-04-14 02:11:36 -04:00
1 parent 9a7a468607
commit 9733ae54c3
8 files changed
+45 -5

No files matched your search

+7
View File
@@ -444,3 +444,10 @@ void to_json(nlohmann::json &j, const VerificationGateInfoObject &m) {
JS_IF("version", m.Version);
JS_IF("enabled", m.Enabled);
}
void from_json(const nlohmann::json &j, RateLimitedResponse &m) {
JS_D("code", m.Code);
JS_D("global", m.Global);
JS_O("message", m.Message);
JS_D("retry_after", m.RetryAfter);
}