Makes sure NotificationService is suspendable

This commit is contained in:
ganfra 2023-07-28 17:56:17 +02:00
parent d63a3e2d77
commit fa9fa69697
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?>
}