Enable filter push notifications by push rules (#1041)
* Enable filter push notifications by push rules * Remove unused `filterByPushRules` parameter * Use fallback notification only for items not filetered by the push rules * Fix tests
This commit is contained in:
parent
e8d1f21a14
commit
2131af28d5
6 changed files with 6 additions and 10 deletions
|
|
@ -100,7 +100,7 @@ class RustMatrixClient constructor(
|
|||
dispatchers = dispatchers,
|
||||
)
|
||||
private val notificationClient = client.notificationClient().use { builder ->
|
||||
builder.finish()
|
||||
builder.filterByPushRules().finish()
|
||||
}
|
||||
|
||||
private val notificationService = RustNotificationService(sessionId, notificationClient, dispatchers, clock)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ class RustNotificationService(
|
|||
userId: SessionId,
|
||||
roomId: RoomId,
|
||||
eventId: EventId,
|
||||
filterByPushRules: Boolean,
|
||||
): Result<NotificationData?> = withContext(dispatchers.io) {
|
||||
runCatching {
|
||||
val item = notificationClient.getNotification(roomId.value, eventId.value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue