mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Fix compilation issue after merging develop.
This commit is contained in:
+1
-1
@@ -313,6 +313,7 @@ class DefaultNotificationCreator(
|
|||||||
notificationAccountParams: NotificationAccountParams,
|
notificationAccountParams: NotificationAccountParams,
|
||||||
fallbackNotifiableEvents: List<FallbackNotifiableEvent>,
|
fallbackNotifiableEvents: List<FallbackNotifiableEvent>,
|
||||||
): Notification {
|
): Notification {
|
||||||
|
val fallbackNotifiableEvent = fallbackNotifiableEvents.first()
|
||||||
val channelId = notificationChannels.getChannelIdForMessage(
|
val channelId = notificationChannels.getChannelIdForMessage(
|
||||||
sessionId = fallbackNotifiableEvent.sessionId,
|
sessionId = fallbackNotifiableEvent.sessionId,
|
||||||
noisy = false,
|
noisy = false,
|
||||||
@@ -322,7 +323,6 @@ class DefaultNotificationCreator(
|
|||||||
?.getInt(FALLBACK_COUNTER_EXTRA)
|
?.getInt(FALLBACK_COUNTER_EXTRA)
|
||||||
?: 0
|
?: 0
|
||||||
val counter = existingCounter + fallbackNotifiableEvents.size
|
val counter = existingCounter + fallbackNotifiableEvents.size
|
||||||
val fallbackNotifiableEvent = fallbackNotifiableEvents.first()
|
|
||||||
return NotificationCompat.Builder(context, channelId)
|
return NotificationCompat.Builder(context, channelId)
|
||||||
.setOnlyAlertOnce(true)
|
.setOnlyAlertOnce(true)
|
||||||
.setContentTitle(buildMeta.applicationName.annotateForDebug(7))
|
.setContentTitle(buildMeta.applicationName.annotateForDebug(7))
|
||||||
|
|||||||
Reference in New Issue
Block a user