Skip to content

Commit

Permalink
Display the users avatar in the activity view
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Oct 29, 2020
1 parent eb7501b commit 6f37ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/activitylistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
return QVariant(); // FIXME once the action can be quantified, display on Icon
break;
case ActivityItemDelegate::UserIconRole:
return Utility::getCoreIcon(QStringLiteral("account"));
return !ast->account()->avatar().isNull() ? ast->account()->avatar() : Utility::getCoreIcon(QStringLiteral("account"));
break;
case Qt::ToolTipRole:
return tr("%1 %2 on %3").arg(a._subject, Utility::timeAgoInWords(a._dateTime), a._accName);
Expand Down

0 comments on commit 6f37ec0

Please sign in to comment.