mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Apply autofixes from clazy
This commit is contained in:
@@ -525,7 +525,7 @@ void ApiWrap::sendMessageFail(
|
||||
link)));
|
||||
} else if (error.type().startsWith(qstr("SLOWMODE_WAIT_"))) {
|
||||
const auto chop = qstr("SLOWMODE_WAIT_").size();
|
||||
const auto left = error.type().mid(chop).toInt();
|
||||
const auto left = error.type().midRef(chop).toInt();
|
||||
if (const auto channel = peer->asChannel()) {
|
||||
const auto seconds = channel->slowmodeSeconds();
|
||||
if (seconds >= left) {
|
||||
|
Reference in New Issue
Block a user