mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
removing unused property (written to but never read)
This commit is contained in:
parent
81da185d8b
commit
89d643a4be
5 changed files with 1 additions and 15 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue