mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Don't try adding effects to forwarded messages.
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user