mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't try adding effects to forwarded messages.
This commit is contained in:
parent
bb79a07262
commit
ee680ac1f1
2 changed files with 6 additions and 2 deletions
|
@ -3383,7 +3383,9 @@ void ApiWrap::forwardMessages(
|
||||||
.date = HistoryItem::NewMessageDate(action.options),
|
.date = HistoryItem::NewMessageDate(action.options),
|
||||||
.shortcutId = action.options.shortcutId,
|
.shortcutId = action.options.shortcutId,
|
||||||
.postAuthor = messagePostAuthor,
|
.postAuthor = messagePostAuthor,
|
||||||
.effectId = action.options.effectId,
|
|
||||||
|
// forwarded messages don't have effects
|
||||||
|
//.effectId = action.options.effectId,
|
||||||
}, item);
|
}, item);
|
||||||
_session->data().registerMessageRandomId(randomId, newId);
|
_session->data().registerMessageRandomId(randomId, newId);
|
||||||
if (!localIds) {
|
if (!localIds) {
|
||||||
|
|
|
@ -4224,7 +4224,9 @@ SendMenu::Details HistoryWidget::sendMenuDetails() const {
|
||||||
: HistoryView::CanScheduleUntilOnline(_peer)
|
: HistoryView::CanScheduleUntilOnline(_peer)
|
||||||
? SendMenu::Type::ScheduledToUser
|
? SendMenu::Type::ScheduledToUser
|
||||||
: SendMenu::Type::Scheduled;
|
: SendMenu::Type::Scheduled;
|
||||||
const auto effectAllowed = _peer && _peer->isUser();
|
const auto effectAllowed = _peer
|
||||||
|
&& _peer->isUser()
|
||||||
|
&& (HasSendText(_field) || _previewDrawPreview);
|
||||||
return { .type = type, .effectAllowed = effectAllowed };
|
return { .type = type, .effectAllowed = effectAllowed };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue