2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

fixed history block index bug

This commit is contained in:
John Preston
2016-03-22 12:51:20 +03:00
parent fd7a30f143
commit f662067a68
4 changed files with 67 additions and 57 deletions

View File

@@ -220,6 +220,9 @@ class History {
public:
History(const PeerId &peerId);
History(const History &) = delete;
History &operator=(const History &) = delete;
ChannelId channelId() const {
return peerToChannel(peer->id);
}
@@ -503,9 +506,10 @@ private:
HistoryItem *addMessageGroupAfterPrev(HistoryItem *newItem, HistoryItem *prev);
HistoryItem *addNewInTheMiddle(HistoryItem *newItem, int32 blockIndex, int32 itemIndex);
History(const History &) = delete;
History &operator=(const History &) = delete;
};
HistoryBlock *addNewLastBlock();
HistoryBlock *addNewFirstBlock();
};
class HistoryGroup;
class HistoryCollapse;