From 17c4dadbd2290bdab09a8545bd3f287351dcf9f4 Mon Sep 17 00:00:00 2001 From: Alex-Emmet Date: Sun, 8 Feb 2026 20:13:50 +0100 Subject: [PATCH] [Add] Notification handling --- src/data/communication.rs | 6 ++++++ src/rho/client_connection.rs | 2 ++ src/rho/iota_connection.rs | 1 + 3 files changed, 9 insertions(+) mode change 100644 => 100755 src/data/communication.rs diff --git a/src/data/communication.rs b/src/data/communication.rs old mode 100644 new mode 100755 index f6b2fe3..99229f5 --- a/src/data/communication.rs +++ b/src/data/communication.rs @@ -35,6 +35,7 @@ pub enum DataTypes { denied_profiles, content, messages, + notifications, send_time, get_time, get_variant, @@ -142,6 +143,11 @@ pub enum CommunicationType { message_other_iota, message_chunk, messages_get, + + push_notification, + read_notification, + get_notifications, + change_confirm, confirm_receive, confirm_read, diff --git a/src/rho/client_connection.rs b/src/rho/client_connection.rs index 79417e9..9e54f1f 100644 --- a/src/rho/client_connection.rs +++ b/src/rho/client_connection.rs @@ -361,6 +361,8 @@ impl ClientConnection { } if cv.is_type(CommunicationType::change_user_data) + || cv.is_type(CommunicationType::read_notification) + || cv.is_type(CommunicationType::get_notifications) || cv.is_type(CommunicationType::get_user_data) || cv.is_type(CommunicationType::get_iota_data) || cv.is_type(CommunicationType::delete_user) diff --git a/src/rho/iota_connection.rs b/src/rho/iota_connection.rs index 3f753a9..1e879cf 100755 --- a/src/rho/iota_connection.rs +++ b/src/rho/iota_connection.rs @@ -434,6 +434,7 @@ impl IotaConnection { } if cv.is_type(CommunicationType::change_iota_data) + || cv.is_type(CommunicationType::push_notification) || cv.is_type(CommunicationType::get_user_data) || cv.is_type(CommunicationType::get_iota_data) || cv.is_type(CommunicationType::get_register)