mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fix Edit option display for supergroup creator.
Supergroup creator saw the Edit option for other users messages.
This commit is contained in:
@@ -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()) {
|
||||||
|
Reference in New Issue
Block a user