Don't try adding effects to forwarded messages.
This commit is contained in:
parent
bb79a07262
commit
ee680ac1f1
|
@ -3383,7 +3383,9 @@ void ApiWrap::forwardMessages(
|
|||
.date = HistoryItem::NewMessageDate(action.options),
|
||||
.shortcutId = action.options.shortcutId,
|
||||
.postAuthor = messagePostAuthor,
|
||||
.effectId = action.options.effectId,
|
||||
|
||||
// forwarded messages don't have effects
|
||||
//.effectId = action.options.effectId,
|
||||
}, item);
|
||||
_session->data().registerMessageRandomId(randomId, newId);
|
||||
if (!localIds) {
|
||||
|
|
|
@ -4224,7 +4224,9 @@ SendMenu::Details HistoryWidget::sendMenuDetails() const {
|
|||
: HistoryView::CanScheduleUntilOnline(_peer)
|
||||
? SendMenu::Type::ScheduledToUser
|
||||
: SendMenu::Type::Scheduled;
|
||||
const auto effectAllowed = _peer && _peer->isUser();
|
||||
const auto effectAllowed = _peer
|
||||
&& _peer->isUser()
|
||||
&& (HasSendText(_field) || _previewDrawPreview);
|
||||
return { .type = type, .effectAllowed = effectAllowed };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue