Just ignore views of sponsored messages from history preview or unidentified places.
This commit is contained in:
parent
2de39ffffe
commit
0d16085d69
@ -19974,6 +19974,8 @@ Status MessagesManager::view_messages(DialogId dialog_id, vector<MessageId> mess
|
||||
if (is_dialog_history) {
|
||||
td_->sponsored_message_manager_->view_sponsored_message(dialog_id, message_id);
|
||||
continue;
|
||||
} else if (source == MessageSource::HistoryPreview || source == MessageSource::Other) {
|
||||
continue;
|
||||
} else {
|
||||
return Status::Error(400, "Can't view the message from the specified source");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user