Remove edit caption UI for not my messages.
Regression was introduced in 8eb7f1f1aa
.
This commit is contained in:
parent
da0387a23e
commit
8f719f8c06
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue