You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the missing piece for Android to treat a notification as a
"conversation". Note that this requires shortcuts to have already been
created prior to receiving the notification.
Signed-off-by: Joe Groocock <me@frebib.net>
Copy file name to clipboardExpand all lines: libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/factories/NotificationCreator.kt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,10 @@ class DefaultNotificationCreator @Inject constructor(
136
136
// that can be displayed in not disturb mode if white listed (the later will need compat28.x)
137
137
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
138
138
// ID of the corresponding shortcut, for conversation features under API 30+
139
-
.setShortcutId(roomInfo.roomId.value)
139
+
// Must match those created in the ShortcutInfoCompat.Builder()
140
+
// for the notification to appear as a "Conversation":
0 commit comments