Format file.

This commit is contained in:
Benoit Marty 2026-02-10 17:40:20 +01:00
parent b0a4ce44f0
commit 21595b2155

View file

@ -240,11 +240,13 @@ class DefaultNotificationCreator(
.addAction(rejectInvitationActionFactory.create(inviteNotifiableEvent)) .addAction(rejectInvitationActionFactory.create(inviteNotifiableEvent))
.addAction(acceptInvitationActionFactory.create(inviteNotifiableEvent)) .addAction(acceptInvitationActionFactory.create(inviteNotifiableEvent))
// Build the pending intent for when the notification is clicked // Build the pending intent for when the notification is clicked
.setContentIntent(pendingIntentFactory.createOpenRoomPendingIntent( .setContentIntent(
sessionId = inviteNotifiableEvent.sessionId, pendingIntentFactory.createOpenRoomPendingIntent(
roomId = inviteNotifiableEvent.roomId, sessionId = inviteNotifiableEvent.sessionId,
eventId = null, roomId = inviteNotifiableEvent.roomId,
)) eventId = null,
)
)
.apply { .apply {
if (inviteNotifiableEvent.noisy) { if (inviteNotifiableEvent.noisy) {
// Compat // Compat
@ -276,12 +278,14 @@ class DefaultNotificationCreator(
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL) .setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL)
.configureWith(notificationAccountParams) .configureWith(notificationAccountParams)
.setAutoCancel(true) .setAutoCancel(true)
.setContentIntent(pendingIntentFactory.createOpenRoomPendingIntent( .setContentIntent(
sessionId = simpleNotifiableEvent.sessionId, pendingIntentFactory.createOpenRoomPendingIntent(
roomId = simpleNotifiableEvent.roomId, sessionId = simpleNotifiableEvent.sessionId,
eventId = null, roomId = simpleNotifiableEvent.roomId,
extras = bundleOf(ROOM_OPENED_FROM_NOTIFICATION to true), eventId = null,
)) extras = bundleOf(ROOM_OPENED_FROM_NOTIFICATION to true),
)
)
.apply { .apply {
if (simpleNotifiableEvent.noisy) { if (simpleNotifiableEvent.noisy) {
// Compat // Compat