diff --git a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp index 343d41d733..11f607751a 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp @@ -563,7 +563,9 @@ void InnerWidget::paintEvent(QPaintEvent *e) { const auto promoted = fixedOnTopCount(); const auto reorderingPinned = (_aboveIndex >= 0) && !_pinnedRows.empty(); - const auto reorderingIndex = promoted + _aboveIndex; + const auto reorderingIndex = reorderingPinned + ? (promoted + _aboveIndex) + : -1; const auto reorderingRow = (reorderingIndex >= 0 && reorderingIndex < list.size()) ? (list.cbegin() + reorderingIndex)->get() diff --git a/cmake b/cmake index bec3e52392..5727743f9a 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit bec3e5239285b9ef43e3ca59bc50ae8aa55664bf +Subproject commit 5727743f9a3d3f01b275eb77f39e7a24b9671c4d