Makes sure NotificationService is suspendable

This commit is contained in:
ganfra 2023-07-28 17:56:17 +02:00
parent 42f0474dd2
commit a60364d304
4 changed files with 9 additions and 6 deletions

View file

@ -21,5 +21,5 @@ import io.element.android.libraries.matrix.api.core.RoomId
import io.element.android.libraries.matrix.api.core.SessionId
interface NotificationService {
fun getNotification(userId: SessionId, roomId: RoomId, eventId: EventId, filterByPushRules: Boolean): Result<NotificationData?>
suspend fun getNotification(userId: SessionId, roomId: RoomId, eventId: EventId, filterByPushRules: Boolean): Result<NotificationData?>
}