removing unused property (written to but never read)

This commit is contained in:
Adam Brown 2021-10-07 11:28:54 +01:00
parent 81da185d8b
commit 89d643a4be
5 changed files with 1 additions and 15 deletions

View file

@ -15,8 +15,6 @@
*/
package im.vector.app.features.notifications
import androidx.core.app.NotificationCompat
data class InviteNotifiableEvent(
val matrixID: String?,
override val eventId: String,
@ -31,6 +29,5 @@ data class InviteNotifiableEvent(
override var isPushGatewayEvent: Boolean = false) : NotifiableEvent {
override var isRedacted: Boolean = false
override var lockScreenVisibility = NotificationCompat.VISIBILITY_PUBLIC
override var hasBeenDisplayed = false
}

View file

@ -25,9 +25,6 @@ interface NotifiableEvent : Serializable {
val editedEventId: String?
var noisy: Boolean
// NotificationCompat.VISIBILITY_PUBLIC , VISIBILITY_PRIVATE , VISIBILITY_SECRET
var lockScreenVisibility: Int
var hasBeenDisplayed: Boolean
var isRedacted: Boolean

View file

@ -15,7 +15,6 @@
*/
package im.vector.app.features.notifications
import androidx.core.app.NotificationCompat
import im.vector.app.BuildConfig
import im.vector.app.R
import im.vector.app.core.resources.StringProvider
@ -66,9 +65,7 @@ class NotifiableEventResolver @Inject constructor(
return resolveMessageEvent(timelineEvent, session)
}
EventType.ENCRYPTED -> {
val messageEvent = resolveMessageEvent(timelineEvent, session)
messageEvent?.lockScreenVisibility = NotificationCompat.VISIBILITY_PRIVATE
return messageEvent
return resolveMessageEvent(timelineEvent, session)
}
else -> {
// If the event can be displayed, display it as is

View file

@ -15,7 +15,6 @@
*/
package im.vector.app.features.notifications
import androidx.core.app.NotificationCompat
import org.matrix.android.sdk.api.session.events.model.EventType
data class NotifiableMessageEvent(
@ -41,7 +40,6 @@ data class NotifiableMessageEvent(
) : NotifiableEvent {
override var lockScreenVisibility = NotificationCompat.VISIBILITY_PUBLIC
override var hasBeenDisplayed: Boolean = false
override var isRedacted: Boolean = false
override var isPushGatewayEvent: Boolean = false

View file

@ -15,8 +15,6 @@
*/
package im.vector.app.features.notifications
import androidx.core.app.NotificationCompat
data class SimpleNotifiableEvent(
val matrixID: String?,
override val eventId: String,
@ -31,5 +29,4 @@ data class SimpleNotifiableEvent(
override var hasBeenDisplayed: Boolean = false
override var isRedacted: Boolean = false
override var lockScreenVisibility = NotificationCompat.VISIBILITY_PUBLIC
}