revert "feat: added previous and the new IP to the notifications (#2743)" (#2753)

This reverts commit 3dd16e4c98.
This commit is contained in:
Serhiy Mytrovtsiy
2025-10-11 11:39:33 +02:00
committed by GitHub
parent 3dd16e4c98
commit 868ca52221

View File

@@ -119,7 +119,7 @@ class Notifications: NotificationsWrapper {
if self.localIPState { if self.localIPState {
let addr = value.laddr.v4 ?? value.laddr.v6 let addr = value.laddr.v4 ?? value.laddr.v6
if addr != self.localIP { if addr != self.localIP {
self.newNotification(id: self.localID, title: localizedString("Local IP changed from \(addr ?? "unknown") to \(self.localIP ?? "unknown")"), subtitle: nil) self.newNotification(id: self.localID, title: localizedString("Local IP changed"), subtitle: nil)
} }
self.localIP = addr self.localIP = addr
} }
@@ -127,7 +127,7 @@ class Notifications: NotificationsWrapper {
if self.publicIPState { if self.publicIPState {
let addr = value.raddr.v4 ?? value.raddr.v6 let addr = value.raddr.v4 ?? value.raddr.v6
if addr != self.publicIP { if addr != self.publicIP {
self.newNotification(id: self.localID, title: localizedString("Public IP changed from \(addr ?? "unknown") to \(self.localIP ?? "unknown")"), subtitle: nil) self.newNotification(id: self.publicID, title: localizedString("Public IP changed"), subtitle: nil)
} }
self.publicIP = addr self.publicIP = addr
} }