mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Handle fwd_from without a link to the account.
This commit is contained in:
@@ -63,6 +63,12 @@ style::color PeerUserpicColor(PeerId peerId) {
|
||||
return colors[PeerColorIndex(peerId)];
|
||||
}
|
||||
|
||||
PeerId FakePeerIdForJustName(const QString &name) {
|
||||
return peerFromUser(name.isEmpty()
|
||||
? 777
|
||||
: hashCrc32(name.constData(), name.size() * sizeof(QChar)));
|
||||
}
|
||||
|
||||
} // namespace Data
|
||||
|
||||
PeerClickHandler::PeerClickHandler(not_null<PeerData*> peer)
|
||||
|
Reference in New Issue
Block a user