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 021b19dae..f1d3a5d09 100644 --- a/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp +++ b/Telegram/SourceFiles/history/admin_log/history_admin_log_item.cpp @@ -1681,7 +1681,9 @@ void GenerateItems( const auto createDeleteTopic = [&](const LogDeleteTopic &data) { auto topicLink = GenerateTopicLink(channel, data.vtopic()); - topicLink.entities.erase(topicLink.entities.begin()); + if (!topicLink.entities.empty()) { + topicLink.entities.erase(topicLink.entities.begin()); + } addSimpleServiceMessage(tr::lng_admin_log_topics_deleted( tr::now, lt_from,