Afficher les notifications avec du contenu caché correctement

This commit is contained in:
odrling 2018-01-10 19:11:12 +01:00
parent a257a4074d
commit 5091425f97

View file

@ -147,12 +147,6 @@ class NornNotification private constructor(val conversationId: Int, val context:
// assigner le style à la notification
this.builder.setStyle(this.messagingStyle)
// donner un nom à la conversation ou le cacher l'utilisateur l'a souhaité
if (!this.preferences.getBoolean(context.getString(R.string.notifications_contact), true))
this.messagingStyle.conversationTitle = context.getString(R.string.hidden_conversation)
else
this.messagingStyle.conversationTitle = this.conversation.name
// Ouvrir l'application lorsqu'on appuie sur la notification
val intent = Intent(context, ConversationActivity::class.java)
intent.putExtra("conversationId", this.conversation.id)