Fix a crash in public rooms list.
This commit is contained in:
@@ -148,7 +148,10 @@ QVariant PublicRoomListModel::data(const QModelIndex& index, int role) const {
|
|||||||
return displayName;
|
return displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
displayName = room.aliases.front();
|
if (!room.aliases.isEmpty()) {
|
||||||
|
displayName = room.aliases.front();
|
||||||
|
}
|
||||||
|
|
||||||
if (!displayName.isEmpty()) {
|
if (!displayName.isEmpty()) {
|
||||||
return displayName;
|
return displayName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user