Fix MessagesManager::can_get_message_viewers.

This commit is contained in:
levlam 2021-12-08 20:16:47 +03:00
parent 5a22865f7c
commit 6411606fe6

View File

@ -17458,6 +17458,7 @@ Status MessagesManager::can_get_message_viewers(DialogId dialog_id, const Messag
if (m->content->get_type() == MessageContentType::Poll &&
get_message_content_poll_is_anonymous(td_, m->content.get())) {
return Status::Error(400, "Anonymous poll viewers are unavailable");
}
return Status::OK();