Protect call to getNotificationItem

This commit is contained in:
Benoit Marty 2023-03-31 16:02:05 +02:00 committed by Benoit Marty
parent 9fe42691ea
commit 7ff72d480c
4 changed files with 19 additions and 12 deletions

View file

@ -17,5 +17,5 @@
package io.element.android.libraries.matrix.api.notification
interface NotificationService {
fun getNotification(userId: String, roomId: String, eventId: String): NotificationData?
suspend fun getNotification(userId: String, roomId: String, eventId: String): Result<NotificationData?>
}