mirror of https://github.com/procxx/kepka.git
Closed beta version: 1.3.13.2: Fix broken beta.
This commit is contained in:
parent
dac0471157
commit
a8da0c18ee
|
@ -4506,6 +4506,9 @@ void _writePeer(QDataStream &stream, PeerData *peer) {
|
||||||
PeerData *_readPeer(int streamAppVersion, QDataStream &stream) {
|
PeerData *_readPeer(int streamAppVersion, QDataStream &stream) {
|
||||||
quint64 peerId = 0, photoId = 0;
|
quint64 peerId = 0, photoId = 0;
|
||||||
stream >> peerId >> photoId;
|
stream >> peerId >> photoId;
|
||||||
|
if (!peerId) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
auto photoLoc = Serialize::readStorageImageLocation(
|
auto photoLoc = Serialize::readStorageImageLocation(
|
||||||
streamAppVersion,
|
streamAppVersion,
|
||||||
|
@ -4721,7 +4724,12 @@ void readRecentHashtagsAndBots() {
|
||||||
const auto peer = _readPeer(
|
const auto peer = _readPeer(
|
||||||
hashtags.version,
|
hashtags.version,
|
||||||
hashtags.stream);
|
hashtags.stream);
|
||||||
if (peer && peer->isUser() && peer->asUser()->botInfo && !peer->asUser()->botInfo->inlinePlaceholder.isEmpty() && !peer->asUser()->username.isEmpty()) {
|
if (!peer) {
|
||||||
|
return; // Broken data.
|
||||||
|
} else if (peer->isUser()
|
||||||
|
&& peer->asUser()->botInfo
|
||||||
|
&& !peer->asUser()->botInfo->inlinePlaceholder.isEmpty()
|
||||||
|
&& !peer->asUser()->username.isEmpty()) {
|
||||||
bots.push_back(peer->asUser());
|
bots.push_back(peer->asUser());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue