Fix Edit option display for supergroup creator.

Supergroup creator saw the Edit option for other users messages.
This commit is contained in:
John Preston 2017-07-03 13:13:32 +03:00
parent bca0e1e16c
commit 0d38106ed0
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {