Improve on_story_replied.
This commit is contained in:
parent
88f04fe304
commit
e5b31eb6bd
@ -1455,9 +1455,9 @@ void StoryManager::on_story_replied(StoryFullId story_full_id, UserId replier_us
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (story->content_ != nullptr && is_active_story(story) &&
|
if (story->content_ != nullptr && G()->unix_time() < get_story_viewers_expire_date(story) &&
|
||||||
story->interaction_info_.definitely_has_no_user(replier_user_id)) {
|
story->interaction_info_.definitely_has_no_user(replier_user_id)) {
|
||||||
reload_story(story_full_id, Promise<Unit>());
|
td_->create_handler<GetStoriesViewsQuery>()->send({story_full_id.get_story_id()});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user