mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Workaround gcc bug in other places too
This commit is contained in:
parent
e3d3464c35
commit
4c2fc600a0
@ -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;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user