Handle conversion of historical CLEARCHAT messages to NOTICE messages in Chatterino instead of relying on the Recent Messages API to handle it for us (#1804)

This has historically been done in the Recent Messages API, but this functionality is being moved to Chatterino instead

* Remove `clearchatToNotice=true` query parameter to the Recent Messages API
This commit is contained in:
pajlada
2020-07-18 08:12:11 -04:00
committed by GitHub
parent e928cde2d5
commit ffdf5a144c
6 changed files with 67 additions and 4 deletions
+12
View File
@@ -50,4 +50,16 @@ QString formatTime(int totalSeconds)
return res;
}
QString formatTime(QString totalSecondsString)
{
bool ok = true;
int totalSeconds(totalSecondsString.toInt(&ok));
if (ok)
{
return formatTime(totalSeconds);
}
return "n/a";
}
} // namespace chatterino