mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Format file.
This commit is contained in:
+15
-11
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user