mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +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;
|
||||
}
|
||||
if (auto channel = _history->peer->asChannel()) {
|
||||
if (channel->canEditMessages()) {
|
||||
if (isPost() && channel->canEditMessages()) {
|
||||
return true;
|
||||
}
|
||||
if (out()) {
|
||||
|
Reference in New Issue
Block a user