1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(chat): Stop spellcheck from leaking messages to logs

This commit is contained in:
Anthony Bilinski 2022-03-06 06:49:14 -08:00
parent ba17b5130c
commit 813643adbf
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -92,8 +92,13 @@ void logMessageHandler(QtMsgType type, const QMessageLogContext& ctxt, const QSt
{
// Silence qWarning spam due to bug in QTextBrowser (trying to open a file for base64 images)
if (ctxt.function == QString("virtual bool QFSFileEngine::open(QIODevice::OpenMode)")
&& msg == QString("QFSFileEngine::open: No file name specified"))
&& msg == QString("QFSFileEngine::open: No file name specified")) {
return;
}
if (msg.startsWith("Unable to find any suggestion for")) {
// Prevent sonnet's complaints from leaking user chat messages to logs
return;
}
if (msg == QString("attempted to send message with network family 10 (probably IPv6) on IPv4 socket")) {
// non-stop c-toxcore spam for IPv4 users: https://github.com/TokTok/c-toxcore/issues/1432