diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index 7658449a5..09b67a480 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -651,6 +651,7 @@ PeerData *ParticipantsAdditionalData::applyParticipant( case Api::ChatParticipant::Type::Left: return logBad(); }; + Unexpected("Api::ChatParticipant::type in applyParticipant."); } UserData *ParticipantsAdditionalData::applyCreator( diff --git a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp index 9969ad409..794719cef 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp @@ -527,6 +527,7 @@ auto GenerateParticipantChangeText( case Api::ChatParticipant::Type::Member: return generateOther(peerId); }; + Unexpected("Participant type in GenerateParticipantChangeText."); }(); result.entities.push_front(