Фикс: пуш-уведомления — in-app баннер (Telegram parity), аватарки Mantine, группы person.2.fill, антиспам вибраций
This commit is contained in:
@@ -17,12 +17,13 @@ struct ForegroundNotificationTests {
|
||||
|
||||
// MARK: - System Banner Presentation
|
||||
|
||||
@Test("Non-suppressed chat shows system banner with sound")
|
||||
@Test("Telegram parity: all foreground notifications suppressed")
|
||||
func nonSuppressedShowsBanner() {
|
||||
clearActiveDialogs()
|
||||
let userInfo: [AnyHashable: Any] = ["dialog": "02aaa", "title": "Alice"]
|
||||
let options = AppDelegate.foregroundPresentationOptions(for: userInfo)
|
||||
#expect(options == [.banner, .sound])
|
||||
// Telegram parity: willPresent returns [] — no banners/sound in foreground.
|
||||
#expect(options == [])
|
||||
}
|
||||
|
||||
@Test("Active chat suppresses system banner")
|
||||
|
||||
Reference in New Issue
Block a user