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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user