From 1f4a8d7eb618f2ef1d5a160db792ea49c00786d2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 4 Sep 2024 14:45:07 +0400 Subject: [PATCH] Fix build with MSVC. --- Telegram/SourceFiles/history/history_view_swipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_view_swipe.cpp b/Telegram/SourceFiles/history/history_view_swipe.cpp index 647f5f198e..d878ffbd4b 100644 --- a/Telegram/SourceFiles/history/history_view_swipe.cpp +++ b/Telegram/SourceFiles/history/history_view_swipe.cpp @@ -48,9 +48,9 @@ void SetupSwipeHandler( update({ .ratio = std::clamp(ratio, 0., 1.5), .reachRatio = state->animationReach.value(0.), + .msgBareId = state->finishByTopData.msgBareId, .translation = int( base::SafeRound(-std::clamp(ratio, 0., 1.5) * threshold)), - .msgBareId = state->finishByTopData.msgBareId, .cursorTop = state->cursorTop, }); };