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

New storage for shared media messages index.

This commit is contained in:
John Preston
2017-09-04 14:40:02 +03:00
parent b873fee1cf
commit 41ed2d1b84
34 changed files with 1446 additions and 125 deletions

View File

@@ -52,7 +52,7 @@ public:
void addItem(HistoryItem *item) {
Expects(canAddItem(item));
_items.push_back(item);
std::sort(_items.begin(), _items.end(), [](HistoryItem *a, HistoryItem *b) {
base::sort(_items, [](HistoryItem *a, HistoryItem *b) {
return (a->id > b->id);
});
refreshStatus();