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