aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/db
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-04-22 04:42:52 -0400
committerAllan Wang <me@allanwang.ca>2019-04-22 04:42:52 -0400
commitba0b4e70d93f91497a7bc157fe7f3838942dfb15 (patch)
tree6b5ab363eabfe1c95e6908c5e4ca084c0e5f9086 /app/src/main/kotlin/com/pitchedapps/frost/db
parent7f371a95320a1d8aae29f8ca15f7fd972367b60e (diff)
downloadfrost-ba0b4e70d93f91497a7bc157fe7f3838942dfb15.tar.gz
frost-ba0b4e70d93f91497a7bc157fe7f3838942dfb15.tar.bz2
frost-ba0b4e70d93f91497a7bc157fe7f3838942dfb15.zip
Fix icon loading
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/db')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt b/app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt
index 532bb435..d4b51c1e 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/db/NotificationDb.kt
@@ -137,8 +137,11 @@ interface NotificationDao {
suspend fun NotificationDao.deleteAll() = dao { _deleteAll() }
-suspend fun NotificationDao.selectNotifications(userId: Long, type: String): List<NotificationContent> = dao {
+fun NotificationDao.selectNotificationsSync(userId: Long, type: String): List<NotificationContent> =
_selectNotifications(userId, type).map { it.toNotifContent() }
+
+suspend fun NotificationDao.selectNotifications(userId: Long, type: String): List<NotificationContent> = dao {
+ selectNotificationsSync(userId, type)
}
/**