From 1c01f21fedf98341dd52f5242eedefa15e23ccee Mon Sep 17 00:00:00 2001 From: Slavasil Date: Sun, 5 Jan 2025 03:04:24 +0300 Subject: [PATCH] fix duplicate repost when vk rechecking is necessary --- manager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/manager.cpp b/manager.cpp index 1ff0475..42e09e0 100644 --- a/manager.cpp +++ b/manager.cpp @@ -601,9 +601,6 @@ void RepostManager::on_tg_message(td_api::updateNewMessage &update) { } std::vector posts = { *post }; spdlog::debug("rechecking vk posts before processing the new tg post"); - recheck_vk_posts([this, posts](){ - spdlog::debug("processing the new tg post"); - on_new_posts(posts); - }); + recheck_vk_posts({}); } }