Always show self stories in the main story list.
This commit is contained in:
parent
2ef550f661
commit
6f8fbaebf8
@ -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 {
|
bool ContactsManager::get_user_stories_hidden(UserId user_id) const {
|
||||||
|
if (user_id == get_my_id()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
auto u = get_user(user_id);
|
auto u = get_user(user_id);
|
||||||
if (u == nullptr) {
|
if (u == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -2135,6 +2135,9 @@ bool StoryManager::is_subscribed_to_dialog_stories(DialogId owner_dialog_id) con
|
|||||||
}
|
}
|
||||||
switch (owner_dialog_id.get_type()) {
|
switch (owner_dialog_id.get_type()) {
|
||||||
case DialogType::User:
|
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());
|
return td_->contacts_manager_->is_user_contact(owner_dialog_id.get_user_id());
|
||||||
case DialogType::Chat:
|
case DialogType::Chat:
|
||||||
case DialogType::Channel:
|
case DialogType::Channel:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user