mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
separating the mutable vars from the immutable ones, they'll be removed or made immutable by the notification redesign
This commit is contained in:
parent
db5d4ead38
commit
b44a382893
4 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 ?: ""
|
||||
|
|
|
@ -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
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue