fix duplicate repost when vk rechecking is necessary

This commit is contained in:
Slavasil 2025-01-05 03:04:24 +03:00
parent aaa68d5c17
commit 1c01f21fed

View File

@ -601,9 +601,6 @@ void RepostManager::on_tg_message(td_api::updateNewMessage &update) {
}
std::vector<AbstractPost> 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({});
}
}