Don't check contact status for bots / service.

This commit is contained in:
John Preston 2023-08-14 22:17:40 +02:00
parent cc27b6c5c5
commit 79e8b1dbca
1 changed files with 3 additions and 1 deletions

View File

@ -345,7 +345,9 @@ void Stories::parseAndApply(const MTPUserStories &stories) {
}
sort(list);
};
if (result.user->isContact()) {
if (result.user->isBot()
|| result.user->isServiceUser()
|| result.user->isContact()) {
const auto hidden = result.user->hasStoriesHidden();
using List = StorySourcesList;
add(hidden ? List::Hidden : List::NotHidden);