mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix Edit option display for supergroup creator.
Supergroup creator saw the Edit option for other users messages.
This commit is contained in:
parent
bca0e1e16c
commit
0d38106ed0
1 changed files with 1 additions and 1 deletions
|
@ -849,7 +849,7 @@ bool HistoryItem::canEdit(const QDateTime &cur) const {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (auto channel = _history->peer->asChannel()) {
|
if (auto channel = _history->peer->asChannel()) {
|
||||||
if (channel->canEditMessages()) {
|
if (isPost() && channel->canEditMessages()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (out()) {
|
if (out()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue