diff --git a/submodules/Display/Source/Navigation/NavigationController.swift b/submodules/Display/Source/Navigation/NavigationController.swift index 078b46e099..1717cde87b 100644 --- a/submodules/Display/Source/Navigation/NavigationController.swift +++ b/submodules/Display/Source/Navigation/NavigationController.swift @@ -362,7 +362,14 @@ open class NavigationController: UINavigationController, ContainableController, self.isUpdatingContainers = true if let badgeNode = self.badgeNode, let image = badgeNode.image { - badgeNode.isHidden = !rawLayout.deviceMetrics.hasTopNotch || rawLayout.size.width > rawLayout.size.height + let badgeIsHidden = !rawLayout.deviceMetrics.hasTopNotch || rawLayout.size.width > rawLayout.size.height + if badgeIsHidden != badgeNode.isHidden && !badgeIsHidden { + Queue.mainQueue().after(0.3) { + badgeNode.isHidden = badgeIsHidden + } + } else { + badgeNode.isHidden = badgeIsHidden + } badgeNode.frame = CGRect(origin: CGPoint(x: floorToScreenPixels((rawLayout.size.width - image.size.width) / 2.0), y: 6.0), size: image.size) } diff --git a/submodules/WebUI/Sources/WebAppController.swift b/submodules/WebUI/Sources/WebAppController.swift index 0bb859aba0..855b8180ae 100644 --- a/submodules/WebUI/Sources/WebAppController.swift +++ b/submodules/WebUI/Sources/WebAppController.swift @@ -534,6 +534,10 @@ public final class WebAppController: ViewController, AttachmentContainable { self.hapticFeedback.impact(.medium) case "heavy": self.hapticFeedback.impact(.heavy) + case "rigid": + self.hapticFeedback.impact(.rigid) + case "soft": + self.hapticFeedback.impact(.soft) default: break }