diff --git a/README.md b/README.md index f5f05a7..f7bc9c8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1 @@ -# IOTA - -A lightweight, Rust-based TUI and service orchestrator for Tensamin IOTA. -Iota manages users and stores their messages and communities. It can be run in a centralised, decentralised or hybrid mode. - -The Iota is a work in progress. +# ⚠️ Moved to [git.methanium.net](https://git.methanium.net/tensamin/iota) ⚠️ diff --git a/src/omikron/omikron_connection.rs b/src/omikron/omikron_connection.rs index 6a534c0..7e92269 100755 --- a/src/omikron/omikron_connection.rs +++ b/src/omikron/omikron_connection.rs @@ -464,9 +464,15 @@ impl OmikronConnection { ); } - // Incoming storsed message: store for the recipient, attempt local delivery, notify sender. + // Incoming stored message: store for the recipient, attempt local delivery, notify sender. if cv.is_type(CommunicationType::message_send) { - let sender_id: u64 = cv.get_sender(); + let sender_id: i64 = if let Some(n) = cv.get_data(DataTypes::sender_id).as_number() { + n as i64 + } else if let Some(s) = cv.get_data(DataTypes::sender_id).as_str() { + s.parse::().unwrap_or(0) + } else { + 0 + }; // parse receiver_id (the storage owner for this incoming message) let receiver_id: i64 = if let Some(n) = cv.get_data(DataTypes::receiver_id).as_number()