mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Fix caption editing in grouped media.
This commit is contained in:
parent
a8ac18e4fd
commit
4e8f5541af
3 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,7 @@ EditCaptionBox::EditCaptionBox(
|
|||
if (const auto photo = media->getPhoto()) {
|
||||
dimensions = QSize(photo->full->width(), photo->full->height());
|
||||
image = photo->full;
|
||||
_photo = true;
|
||||
} else if (const auto doc = media->getDocument()) {
|
||||
dimensions = doc->dimensions;
|
||||
image = doc->thumb;
|
||||
|
|
|
@ -449,6 +449,10 @@ bool HistoryGroupedMedia::needsBubble() const {
|
|||
return _needBubble;
|
||||
}
|
||||
|
||||
bool HistoryGroupedMedia::canEditCaption() const {
|
||||
return main()->canEditCaption();
|
||||
}
|
||||
|
||||
bool HistoryGroupedMedia::computeNeedBubble() const {
|
||||
if (!_caption.isEmpty()) {
|
||||
return true;
|
||||
|
|
|
@ -108,6 +108,7 @@ public:
|
|||
bool customInfoLayout() const override {
|
||||
return _caption.isEmpty();
|
||||
}
|
||||
bool canEditCaption() const override;
|
||||
bool allowsFastShare() const override {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue