Fix segfault

This commit is contained in:
Tobias Fella
2020-11-17 13:41:47 +01:00
parent 13907cedda
commit 93e5ad430b

View File

@@ -312,7 +312,7 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
text += " and ";
if (!e.newAvatarUrl())
text += tr("cleared their avatar");
else if (e.prevContent()->avatarUrl->isEmpty())
else if (!e.prevContent()->avatarUrl)
text += tr("set an avatar");
else
text += tr("updated their avatar");