Hide reply field in channel stories.

This commit is contained in:
John Preston 2023-09-01 16:37:28 +04:00
parent f3647d7f8c
commit b2c9a92c3e
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ struct FullReplyTo {
FullStoryId storyId;
[[nodiscard]] bool valid() const {
return msgId || storyId;
return msgId || (storyId && peerIsUser(storyId.peer));
}
explicit operator bool() const {
return valid();

View File

@ -675,7 +675,7 @@ void ReplyArea::show(
}),
});
_controls->clear();
const auto hidden = peer && peer->isSelf();
const auto hidden = peer && (!peer->isUser() || peer->isSelf());
const auto cant = !peer || peer->isServiceUser();
if (!hidden && !cant) {
_controls->show();