mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Hide reply field in channel stories.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user