Skip to content

sphinx-ffi-0.6.1

Compare
Choose a tag to compare
@Evanfeenstra Evanfeenstra released this 12 Feb 19:47
· 114 commits to master since this release

Instead of msg, msg_type, msg_index, msg_msat, msg_sender, msg_uuid, msg_timestamp, and sent_to being a part of the RunReturn object, there is an array of messages called msgs on RunReturn:

pub struct Msg {
    pub type: Option<u8>,
    pub message: Option<String>,
    pub sender: Option<String>,
    pub uuid: Option<String>,
    pub index: Option<String>,
    pub msat: Option<u64>,
    pub timestamp: Option<u64>,
    pub sent_to: Option<String>,
}

This is so that we can do batches messages later on, when restoring an account. When you receive a message from a contact or in a tribe, there is just one item in the array