If there's no description just say nothing
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 16 Sep 2020 11:38:52 +0000 (13:38 +0200)
committerMichael Schuster (Rebase PR Action) <misch7@users.noreply.github.com>
Fri, 18 Sep 2020 17:46:38 +0000 (17:46 +0000)
Otherwise we get lots of "No description available" lines in the
activity list which is basically noise. Also trains the user to ignore
the secondary line.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/tray/ActivityListModel.cpp

index 1f05038d73d43cc7994d8e10ad07fa407dd82827..f6b00f8f6ec1433e3c18837b2d045bb9e418eff3 100644 (file)
@@ -202,9 +202,6 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
     case ActionTextColorRole:
         return a._id == -1 ? QLatin1String("#808080") : QLatin1String("#222");   // FIXME: This is a temporary workaround for _showMoreActivitiesAvailableEntry
     case MessageRole:
-        if (a._message.isEmpty()) {
-            return QString("No description available.");
-        }
         return a._message;
     case LinkRole: {
         if (a._link.isEmpty()) {