2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

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

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);