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:
@@ -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)),
|
||||
};
|
||||
|
@@ -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,
|
||||
|
@@ -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)),
|
||||
|
Reference in New Issue
Block a user