Fix the version.

This commit is contained in:
Adam Treat 2023-05-08 16:50:21 -04:00
parent be9e748abe
commit c7f5280f9f

View File

@ -140,12 +140,12 @@ void ChatsRestoreThread::run()
// Read the version
qint32 version;
in >> version;
if (version < 100) {
if (version < 1) {
qWarning() << "ERROR: Chat file has non supported version:" << file.fileName();
continue;
}
if (version <= 100)
if (version <= 1)
in.setVersion(QDataStream::Qt_6_2);
FileInfo info;