mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in topics admin log.
This commit is contained in:
parent
4910a60499
commit
7aea54ad8f
1 changed files with 3 additions and 1 deletions
|
@ -1681,7 +1681,9 @@ void GenerateItems(
|
||||||
|
|
||||||
const auto createDeleteTopic = [&](const LogDeleteTopic &data) {
|
const auto createDeleteTopic = [&](const LogDeleteTopic &data) {
|
||||||
auto topicLink = GenerateTopicLink(channel, data.vtopic());
|
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(
|
addSimpleServiceMessage(tr::lng_admin_log_topics_deleted(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_from,
|
lt_from,
|
||||||
|
|
Loading…
Add table
Reference in a new issue