From 3dd16e4c9841e2f21b47fbdf44a04320923a5588 Mon Sep 17 00:00:00 2001 From: Tangil Hossain Shawon <70896114+TangilHossain@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:35:01 +0600 Subject: [PATCH] feat: added previous and the new IP to the notifications (#2743) * Issue ID: #2637 Added details on ip change * added Translations to the ip change notification * Revert "added Translations to the ip change notification" This reverts commit 559a8069afbff5f2b67de84d58ed44fa22e10193. * Added "From and to" portion of IP change notification * Added "From and to" portion of IP change notification * removed unintentional extra line at bottom of gitignore file --- Modules/Net/notifications.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Net/notifications.swift b/Modules/Net/notifications.swift index a470547d..8ccd16db 100644 --- a/Modules/Net/notifications.swift +++ b/Modules/Net/notifications.swift @@ -119,7 +119,7 @@ class Notifications: NotificationsWrapper { if self.localIPState { let addr = value.laddr.v4 ?? value.laddr.v6 if addr != self.localIP { - self.newNotification(id: self.localID, title: localizedString("Local IP changed"), subtitle: nil) + self.newNotification(id: self.localID, title: localizedString("Local IP changed from \(addr ?? "unknown") to \(self.localIP ?? "unknown")"), subtitle: nil) } self.localIP = addr } @@ -127,7 +127,7 @@ class Notifications: NotificationsWrapper { if self.publicIPState { let addr = value.raddr.v4 ?? value.raddr.v6 if addr != self.publicIP { - self.newNotification(id: self.publicID, title: localizedString("Public IP changed"), subtitle: nil) + self.newNotification(id: self.localID, title: localizedString("Public IP changed from \(addr ?? "unknown") to \(self.localIP ?? "unknown")"), subtitle: nil) } self.publicIP = addr }