mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Allow notifications for poll end event
This commit is contained in:
parent
6aa4eb5e04
commit
2cb1ea95dc
@ -57,6 +57,7 @@ internal class DefaultProcessEventForPushTask @Inject constructor(
|
|||||||
val allEvents = (newJoinEvents + inviteEvents).filter { event ->
|
val allEvents = (newJoinEvents + inviteEvents).filter { event ->
|
||||||
when (event.type) {
|
when (event.type) {
|
||||||
in EventType.POLL_START.values,
|
in EventType.POLL_START.values,
|
||||||
|
in EventType.POLL_END.values,
|
||||||
in EventType.STATE_ROOM_BEACON_INFO.values,
|
in EventType.STATE_ROOM_BEACON_INFO.values,
|
||||||
EventType.MESSAGE,
|
EventType.MESSAGE,
|
||||||
EventType.REDACTION,
|
EventType.REDACTION,
|
||||||
|
@ -67,7 +67,7 @@ class NotifiableEventResolver @Inject constructor(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
private val nonEncryptedNotifiableEventTypes: List<String> =
|
private val nonEncryptedNotifiableEventTypes: List<String> =
|
||||||
listOf(EventType.MESSAGE) + EventType.POLL_START.values + EventType.STATE_ROOM_BEACON_INFO.values
|
listOf(EventType.MESSAGE) + EventType.POLL_START.values + EventType.POLL_END.values + EventType.STATE_ROOM_BEACON_INFO.values
|
||||||
|
|
||||||
suspend fun resolveEvent(event: Event, session: Session, isNoisy: Boolean): NotifiableEvent? {
|
suspend fun resolveEvent(event: Event, session: Session, isNoisy: Boolean): NotifiableEvent? {
|
||||||
val roomID = event.roomId ?: return null
|
val roomID = event.roomId ?: return null
|
||||||
|
Loading…
Reference in New Issue
Block a user