2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fixed sending animation from inline bots with unexpected result type.

This commit is contained in:
23rd
2022-03-14 13:10:14 +03:00
parent 34f6c6b23f
commit 0b336a2954
11 changed files with 51 additions and 12 deletions

View File

@@ -1103,6 +1103,7 @@ bool FieldAutocomplete::Inner::chooseAtIndex(
stickerBoundingBox()));
contentRect.moveCenter(bounding.center());
return {
Ui::MessageSendingAnimationFrom::Type::Sticker,
_controller->session().data().nextLocalMessageId(),
mapToGlobal(std::move(contentRect)),
};

View File

@@ -447,6 +447,7 @@ void GifsListWidget::selectInlineResult(
const auto rect = item->innerContentRect().translated(
_mosaic.findRect(index).topLeft());
return Ui::MessageSendingAnimationFrom{
.type = Ui::MessageSendingAnimationFrom::Type::Gif,
.localId = controller()->session().data().nextLocalMessageId(),
.globalStartGeometry = mapToGlobal(rect),
.crop = true,

View File

@@ -2529,6 +2529,7 @@ Ui::MessageSendingAnimationFrom StickersListWidget::messageSentAnimationInfo(
(rect.height() - size.height()) / 2);
return {
.type = Ui::MessageSendingAnimationFrom::Type::Sticker,
.localId = session().data().nextLocalMessageId(),
.globalStartGeometry = mapToGlobal(
QRect(rect.topLeft() + innerPos, size)),