mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Hide reply field in channel stories.
This commit is contained in:
parent
f3647d7f8c
commit
b2c9a92c3e
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ struct FullReplyTo {
|
||||||
FullStoryId storyId;
|
FullStoryId storyId;
|
||||||
|
|
||||||
[[nodiscard]] bool valid() const {
|
[[nodiscard]] bool valid() const {
|
||||||
return msgId || storyId;
|
return msgId || (storyId && peerIsUser(storyId.peer));
|
||||||
}
|
}
|
||||||
explicit operator bool() const {
|
explicit operator bool() const {
|
||||||
return valid();
|
return valid();
|
||||||
|
|
|
@ -675,7 +675,7 @@ void ReplyArea::show(
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
_controls->clear();
|
_controls->clear();
|
||||||
const auto hidden = peer && peer->isSelf();
|
const auto hidden = peer && (!peer->isUser() || peer->isSelf());
|
||||||
const auto cant = !peer || peer->isServiceUser();
|
const auto cant = !peer || peer->isServiceUser();
|
||||||
if (!hidden && !cant) {
|
if (!hidden && !cant) {
|
||||||
_controls->show();
|
_controls->show();
|
||||||
|
|
Loading…
Add table
Reference in a new issue