Remove edit caption UI for not my messages.

Regression was introduced in 8eb7f1f1aa.
This commit is contained in:
John Preston 2017-04-21 13:56:59 +03:00
parent da0387a23e
commit 8f719f8c06
1 changed files with 1 additions and 3 deletions

View File

@ -766,9 +766,7 @@ bool HistoryItem::canEdit(const QDateTime &cur) const {
}
if (auto media = msg->getMedia()) {
if (media->canEditCaption()) {
return true;
} else if (media->type() != MediaTypeWebPage) {
if (!media->canEditCaption() && media->type() != MediaTypeWebPage) {
return false;
}
}