show CW in system notification for CW'd statuses (#754)

* show CW in system notification for CW'd statuses

* show spoiler text instead of generic CW message
main
eleete0712 6 years ago committed by Konrad Pozniak
parent f89b04aa11
commit d64658f1f8
  1. 4
      app/src/main/java/com/keylesspalace/tusky/util/NotificationHelper.java

@ -549,8 +549,12 @@ public class NotificationHelper {
case MENTION:
case FAVOURITE:
case REBLOG:
if (notification.getStatus().getSensitive()) {
return notification.getStatus().getSpoilerText();
} else {
return notification.getStatus().getContent().toString();
}
}
return null;
}

Loading…
Cancel
Save