mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-16 20:26:37 +00:00
18 lines
360 B
Swift
18 lines
360 B
Swift
//
|
|
// ConsolidatedNotificationExt.swift
|
|
//
|
|
//
|
|
// Created by Jérôme Danthinne on 31/01/2023.
|
|
//
|
|
|
|
import Models
|
|
|
|
extension ConsolidatedNotification {
|
|
var notificationIds: [String] { notifications.map(\.id) }
|
|
}
|
|
|
|
extension [ConsolidatedNotification] {
|
|
var notificationCount: Int {
|
|
reduce(0) { $0 + ($1.accounts.isEmpty ? 1 : $1.accounts.count) }
|
|
}
|
|
}
|