diff --git a/td/telegram/DialogEventLog.cpp b/td/telegram/DialogEventLog.cpp index dada32466..41d7b65c0 100644 --- a/td/telegram/DialogEventLog.cpp +++ b/td/telegram/DialogEventLog.cpp @@ -50,10 +50,6 @@ static td_api::object_ptr get_chat_event_action_object( case telegram_api::channelAdminLogEventActionParticipantJoinByRequest::ID: { auto action = move_tl_object_as(action_ptr); DialogInviteLink invite_link(std::move(action->invite_), "channelAdminLogEventActionParticipantJoinByRequest"); - if (!invite_link.is_valid()) { - LOG(ERROR) << "Wrong invite link: " << invite_link; - return nullptr; - } UserId approver_user_id(action->approved_by_); if (!approver_user_id.is_valid()) { return nullptr; diff --git a/td/telegram/DialogInviteLink.cpp b/td/telegram/DialogInviteLink.cpp index b5dbc9f71..f9516e00d 100644 --- a/td/telegram/DialogInviteLink.cpp +++ b/td/telegram/DialogInviteLink.cpp @@ -19,7 +19,12 @@ DialogInviteLink::DialogInviteLink(tl_object_ptrget_id() != telegram_api::chatInviteExported::ID) { - LOG(ERROR) << "Receive from " << source << ' ' << to_string(exported_invite_ptr); + CHECK(exported_invite_ptr->get_id() == telegram_api::chatInvitePublicJoinRequests::ID) + Slice slice(source); + if (slice != "channelAdminLogEventActionParticipantJoinByRequest" && slice != "updateChatParticipant" && + slice != "updateChannelParticipant" && slice != "updateBotChatInviteRequester") { + LOG(ERROR) << "Receive from " << source << ' ' << to_string(exported_invite_ptr); + } return; }