Skip to content

Commit

Permalink
Fix top/recent peers cache write error.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Dec 19, 2024
1 parent f93f4c7 commit e33ca9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/data/components/recent_peers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ QByteArray RecentPeers::serialize() const {
auto stream = Serialize::ByteArrayWriter(size);
stream
<< quint32(AppVersion)
<< quint32(_list.size());
<< quint32(count);
for (const auto &peer : list) {
Serialize::writePeer(stream, peer);
}
Expand Down
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/data/components/top_peers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ QByteArray TopPeers::serialize() const {
stream
<< quint32(AppVersion)
<< quint32(_disabled ? 1 : 0)
<< quint32(_list.size());
<< quint32(count);
for (const auto &top : list) {
Serialize::writePeer(stream, top.peer);
stream << SerializeRating(top.rating);
Expand Down

0 comments on commit e33ca9d

Please sign in to comment.