diff --git a/Telegram/SourceFiles/kotato/json_settings.cpp b/Telegram/SourceFiles/kotato/json_settings.cpp index 651843eeb..355e79269 100644 --- a/Telegram/SourceFiles/kotato/json_settings.cpp +++ b/Telegram/SourceFiles/kotato/json_settings.cpp @@ -841,9 +841,9 @@ bool Manager::readCustomFile() { } auto isPeerTypeRead = ReadStringOption(peer, "type", [&](auto type) { - peerStruct.type = type.toLower() == qsl("channel") + peerStruct.type = QString::compare(type.toLower(), "channel") ? LocalFolder::Peer::Type::Channel - : type.toLower() == qsl("chat") + : QString::compare(type.toLower(), "chat") ? LocalFolder::Peer::Type::Chat : LocalFolder::Peer::Type::User; }); @@ -881,9 +881,9 @@ bool Manager::readCustomFile() { } auto isPeerTypeRead = ReadStringOption(peer, "type", [&](auto type) { - peerStruct.type = type.toLower() == qsl("channel") + peerStruct.type = QString::compare(type.toLower(), "channel") ? LocalFolder::Peer::Type::Channel - : type.toLower() == qsl("chat") + : QString::compare(type.toLower(), "chat") ? LocalFolder::Peer::Type::Chat : LocalFolder::Peer::Type::User; });