mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Version 3.7: Fix a crash in some langpacks.
This commit is contained in:
@@ -81,9 +81,11 @@ style::color PeerUserpicColor(PeerId peerId) {
|
||||
}
|
||||
|
||||
PeerId FakePeerIdForJustName(const QString &name) {
|
||||
return peerFromUser(name.isEmpty()
|
||||
constexpr auto kShift = (0xFEULL << 32);
|
||||
const auto base = name.isEmpty()
|
||||
? 777
|
||||
: base::crc32(name.constData(), name.size() * sizeof(QChar)));
|
||||
: base::crc32(name.constData(), name.size() * sizeof(QChar));
|
||||
return peerFromUser(kShift + std::abs(base));
|
||||
}
|
||||
|
||||
bool UpdateBotCommands(
|
||||
|
Reference in New Issue
Block a user