mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix top/recent peers cache write error.
This commit is contained in:
parent
f93f4c72f7
commit
e33ca9d316
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue