fix duplicate repost when vk rechecking is necessary
This commit is contained in:
parent
aaa68d5c17
commit
1c01f21fed
@ -601,9 +601,6 @@ void RepostManager::on_tg_message(td_api::updateNewMessage &update) {
|
|||||||
}
|
}
|
||||||
std::vector<AbstractPost> posts = { *post };
|
std::vector<AbstractPost> posts = { *post };
|
||||||
spdlog::debug("rechecking vk posts before processing the new tg post");
|
spdlog::debug("rechecking vk posts before processing the new tg post");
|
||||||
recheck_vk_posts([this, posts](){
|
recheck_vk_posts({});
|
||||||
spdlog::debug("processing the new tg post");
|
|
||||||
on_new_posts(posts);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user