mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 20:49:36 +01:00
More clean up
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
8307b48213
commit
eb18269ec9
@ -196,9 +196,6 @@ class MessageNotificationWorker(
|
||||
}
|
||||
}
|
||||
|
||||
val adjustedConversationType = conversationType
|
||||
?: Conversation.ConversationType.ONE_TO_ONE_CONVERSATION
|
||||
|
||||
val pendingIntent: PendingIntent? = PendingIntent.getActivity(applicationContext,
|
||||
0, intent, 0)
|
||||
|
||||
@ -291,13 +288,13 @@ class MessageNotificationWorker(
|
||||
override fun onSuccess(result: Drawable) {
|
||||
super.onSuccess(result)
|
||||
person.setIcon(IconCompat.createWithBitmap(result.toBitmap()))
|
||||
notificationBuilder.setStyle(getStyle(decryptedPushMessage, adjustedConversationType, person.build(), style))
|
||||
notificationBuilder.setStyle(getStyle(decryptedPushMessage, conversationType, person.build(), style))
|
||||
NotificationManagerCompat.from(applicationContext).notify(notificationId, notificationBuilder.build())
|
||||
}
|
||||
|
||||
override fun onError(error: Drawable?) {
|
||||
super.onError(error)
|
||||
notificationBuilder.setStyle(getStyle(decryptedPushMessage, adjustedConversationType, person.build(), style))
|
||||
notificationBuilder.setStyle(getStyle(decryptedPushMessage, conversationType, person.build(), style))
|
||||
NotificationManagerCompat.from(applicationContext).notify(notificationId, notificationBuilder.build())
|
||||
}
|
||||
}
|
||||
@ -309,7 +306,7 @@ class MessageNotificationWorker(
|
||||
|
||||
componentsWithEmptyCookieJar.getImageLoader().load(request)
|
||||
} else {
|
||||
notificationBuilder.setStyle(getStyle(decryptedPushMessage, adjustedConversationType, person.build(), style))
|
||||
notificationBuilder.setStyle(getStyle(decryptedPushMessage, conversationType, person.build(), style))
|
||||
NotificationManagerCompat.from(applicationContext).notify(notificationId, notificationBuilder.build())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user