Support story sender channel in get_message_content_min_channel_ids.
This commit is contained in:
parent
012211ea19
commit
e86539c015
@ -3775,6 +3775,14 @@ vector<ChannelId> get_message_content_min_channel_ids(const Td *td, const Messag
|
|||||||
case MessageContentType::ProximityAlertTriggered:
|
case MessageContentType::ProximityAlertTriggered:
|
||||||
// not supported server-side
|
// not supported server-side
|
||||||
break;
|
break;
|
||||||
|
case MessageContentType::Story: {
|
||||||
|
const auto *content = static_cast<const MessageStory *>(message_content);
|
||||||
|
auto dialog_id = content->story_full_id.get_dialog_id();
|
||||||
|
if (dialog_id.get_type() == DialogType::Channel) {
|
||||||
|
return {dialog_id.get_channel_id()};
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case MessageContentType::Giveaway: {
|
case MessageContentType::Giveaway: {
|
||||||
const auto *content = static_cast<const MessageGiveaway *>(message_content);
|
const auto *content = static_cast<const MessageGiveaway *>(message_content);
|
||||||
return content->giveaway_parameters.get_channel_ids();
|
return content->giveaway_parameters.get_channel_ids();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user