separating the mutable vars from the immutable ones, they'll be removed or made immutable by the notification redesign

This commit is contained in:
Adam Brown 2021-10-07 11:57:32 +01:00
parent db5d4ead38
commit b44a382893
4 changed files with 5 additions and 7 deletions

View file

@ -26,9 +26,9 @@ data class InviteNotifiableEvent(
val type: String?,
val timestamp: Long,
val soundName: String?,
override var isPushGatewayEvent: Boolean = false,
override val isRedacted: Boolean = false
) : NotifiableEvent {
override var isPushGatewayEvent: Boolean = false
override var hasBeenDisplayed = false
}

View file

@ -205,8 +205,8 @@ class NotifiableEventResolver @Inject constructor(
title = stringProvider.getString(R.string.notification_new_invitation),
description = body.toString(),
soundName = null, // will be set later
type = event.getClearType(),
isPushGatewayEvent = false)
type = event.getClearType()
)
} else {
Timber.e("## unsupported notifiable event for eventId [${event.eventId}]")
if (BuildConfig.LOW_PRIVACY_LOG_ENABLE) {

View file

@ -30,18 +30,16 @@ data class NotifiableMessageEvent(
val roomIsDirect: Boolean = false,
val roomAvatarPath: String? = null,
val senderAvatarPath: String? = null,
val matrixID: String? = null,
val soundName: String? = null,
// This is used for >N notification, as the result of a smart reply
val outGoingMessage: Boolean = false,
val outGoingMessageFailed: Boolean = false,
override var hasBeenDisplayed: Boolean = false,
override val isRedacted: Boolean = false
) : NotifiableEvent {
override var isPushGatewayEvent: Boolean = false
override var hasBeenDisplayed: Boolean = false
val type: String = EventType.MESSAGE
val description: String = body ?: ""

View file

@ -25,10 +25,10 @@ data class SimpleNotifiableEvent(
val type: String?,
val timestamp: Long,
val soundName: String?,
override var isPushGatewayEvent: Boolean = false,
override val isRedacted: Boolean = false
) : NotifiableEvent {
override var isPushGatewayEvent: Boolean = false
override var hasBeenDisplayed: Boolean = false
}