mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Remove edit caption UI for not my messages.
Regression was introduced in 8eb7f1f1aa.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user