diff --git a/CHANGES.md b/CHANGES.md index b447b6e6e5..57ffff7191 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,7 +5,7 @@ Features ✨: - Improvements 🙌: - - + - Priority conversations for Android 11+ (#2734) Bugfix 🐛: - Message states cosmetic changes (#3007) diff --git a/vector/src/main/java/im/vector/app/features/notifications/NotificationDrawerManager.kt b/vector/src/main/java/im/vector/app/features/notifications/NotificationDrawerManager.kt index 54065597bc..b68f0422dd 100644 --- a/vector/src/main/java/im/vector/app/features/notifications/NotificationDrawerManager.kt +++ b/vector/src/main/java/im/vector/app/features/notifications/NotificationDrawerManager.kt @@ -324,7 +324,6 @@ class NotificationDrawerManager @Inject constructor(private val context: Context .setKey(event.senderId) .build() - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { val openRoomIntent = RoomDetailActivity.shortcutIntent(context, roomId) @@ -332,8 +331,7 @@ class NotificationDrawerManager @Inject constructor(private val context: Context .setLongLived(true) .setIntent(openRoomIntent) .setShortLabel(roomName) - .setIcon(largeBitmap?.let{IconCompat.createWithAdaptiveBitmap(it)}?: iconLoader.getUserIcon(event.senderAvatarPath)) - .setCategories() + .setIcon(largeBitmap?.let { IconCompat.createWithAdaptiveBitmap(it) } ?: iconLoader.getUserIcon(event.senderAvatarPath)) .build() ShortcutManagerCompat.pushDynamicShortcut(context, shortcut)