Фикс: пуш-уведомления — in-app баннер (Telegram parity), аватарки Mantine, группы person.2.fill, антиспам вибраций

This commit is contained in:
2026-04-08 00:21:46 +05:00
parent 168abb8aec
commit bde2e78f3d
8 changed files with 459 additions and 64 deletions

View File

@@ -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")