Skip to content

Commit

Permalink
Remove fallback on non existing avatar placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Sep 24, 2024
1 parent f0a52e0 commit c98db78
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/gui/models/activitylistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
case Qt::DecorationRole:
switch (column) {
case ActivityRole::Text:
if (!accountState->account()->avatar().isNull()) {
return QIcon(accountState->account()->avatar());
} else {
return Resources::getCoreIcon(QStringLiteral("account"));
}
return accountState->account()->avatar();
default:
return {};
}
Expand Down

0 comments on commit c98db78

Please sign in to comment.