Always show self stories in the main story list.

This commit is contained in:
levlam 2023-06-29 16:49:48 +03:00
parent 2ef550f661
commit 6f8fbaebf8
2 changed files with 6 additions and 0 deletions

View File

@ -5909,6 +5909,9 @@ bool ContactsManager::get_channel_has_protected_content(ChannelId channel_id) co
}
bool ContactsManager::get_user_stories_hidden(UserId user_id) const {
if (user_id == get_my_id()) {
return false;
}
auto u = get_user(user_id);
if (u == nullptr) {
return false;

View File

@ -2135,6 +2135,9 @@ bool StoryManager::is_subscribed_to_dialog_stories(DialogId owner_dialog_id) con
}
switch (owner_dialog_id.get_type()) {
case DialogType::User:
if (owner_dialog_id == DialogId(td_->contacts_manager_->get_my_id())) {
return true;
}
return td_->contacts_manager_->is_user_contact(owner_dialog_id.get_user_id());
case DialogType::Chat:
case DialogType::Channel: