summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index 0a9aae6a..5818d9d8 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -2310,7 +2310,7 @@ TimelineModel::formatImagePackEvent(const QString &id) auto sender = utils::replaceEmoji(displayName(QString::fromStdString(event->sender))); const auto packId = [&event]() -> QString { - if (!event->content.pack->display_name.empty()) { + if (event->content.pack && !event->content.pack->display_name.empty()) { return event->content.pack->display_name.c_str(); } else if (!event->state_key.empty()) { return event->state_key.c_str();