2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Use vector instead of custom linked list.

This commit is contained in:
John Preston
2019-04-16 15:37:50 +04:00
parent 58d86af399
commit 2862070348
9 changed files with 129 additions and 268 deletions

View File

@@ -130,7 +130,7 @@ PositionChange Entry::adjustByPosInChatList(
not_null<IndexedList*> indexed) {
const auto lnk = mainChatListLink(list);
const auto movedFrom = lnk->pos();
indexed->adjustByPos(chatListLinks(list));
indexed->adjustByDate(chatListLinks(list));
const auto movedTo = lnk->pos();
return { movedFrom, movedTo };
}