From eb6afdf4387e3f092e9dfd902ae60caa9df91387 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 25 Nov 2021 14:23:13 +0400 Subject: [PATCH] Fix build on Windows. --- Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp | 1 + .../SourceFiles/history/admin_log/history_admin_log_item.cpp | 1 + 2 files changed, 2 insertions(+) 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(