Add message to td_api::chatEventMessageUnpinned.
GitOrigin-RevId: f7c90fa7d782eb57288de582094688252f230b43
This commit is contained in:
parent
e37fde1baa
commit
3eee4654f7
@ -2270,8 +2270,8 @@ chatEventPollStopped message:message = ChatEventAction;
|
||||
//@description A message was pinned @message Pinned message
|
||||
chatEventMessagePinned message:message = ChatEventAction;
|
||||
|
||||
//@description A message was unpinned
|
||||
chatEventMessageUnpinned = ChatEventAction;
|
||||
//@description A message was unpinned @message Unpinned message
|
||||
chatEventMessageUnpinned message:message = ChatEventAction;
|
||||
|
||||
//@description A new member joined the chat
|
||||
chatEventMemberJoined = ChatEventAction;
|
||||
|
Binary file not shown.
@ -30468,10 +30468,15 @@ tl_object_ptr<td_api::ChatEventAction> MessagesManager::get_chat_event_action_ob
|
||||
parse_telegram_api_message(std::move(action->message_), false, "channelAdminLogEventActionUpdatePinned"),
|
||||
true);
|
||||
if (message.second == nullptr) {
|
||||
return make_tl_object<td_api::chatEventMessageUnpinned>();
|
||||
LOG(ERROR) << "Failed to get pinned message";
|
||||
return nullptr;
|
||||
}
|
||||
auto message_object = get_message_object(message.first, message.second.get(), true);
|
||||
if (message.second->is_pinned) {
|
||||
return make_tl_object<td_api::chatEventMessagePinned>(std::move(message_object));
|
||||
} else {
|
||||
return make_tl_object<td_api::chatEventMessageUnpinned>(std::move(message_object));
|
||||
}
|
||||
return make_tl_object<td_api::chatEventMessagePinned>(
|
||||
get_message_object(message.first, message.second.get(), true));
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionEditMessage::ID: {
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionEditMessage>(action_ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user