feat: implement Live Activity registration service and enhance notifications handling

This commit is contained in:
2026-05-24 23:53:40 +07:00
parent d991d06f17
commit 802d32e9a0
13 changed files with 379 additions and 154 deletions
@@ -38,7 +38,7 @@ final class NotificationsViewModel {
let page = try await service.getNotifications(limit: limit, offset: 0)
notifications = page.notifications
unreadCount = page.unreadCount
hasMore = notifications.count < page.total
hasMore = page.hasMore
updateBadge()
} catch {
self.error = error.localizedDescription
@@ -55,7 +55,7 @@ final class NotificationsViewModel {
notifications.append(contentsOf: page.notifications)
unreadCount = page.unreadCount
currentOffset = nextOffset
hasMore = notifications.count < page.total
hasMore = page.hasMore
} catch {
self.error = error.localizedDescription
}