Don't show messages to support as always-read.
This commit is contained in:
parent
c5a46d9d1b
commit
de3ea30d69
|
@ -878,7 +878,7 @@ bool HistoryItem::unread() const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (const auto user = history()->peer->asUser()) {
|
if (const auto user = history()->peer->asUser()) {
|
||||||
if (user->isBot()) {
|
if (user->isBot() && !user->isSupport()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (const auto channel = history()->peer->asChannel()) {
|
} else if (const auto channel = history()->peer->asChannel()) {
|
||||||
|
|
Loading…
Reference in New Issue