adding needed structs #10
Loading…
Reference in New Issue
No description provided.
Delete Branch "structs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adding:
dbf750dfcf
to70c043461b
@ -60,14 +77,18 @@ pub struct CwtchEvent {
pub struct Contact {
this should be Conversation now
@ -60,14 +77,18 @@ pub struct CwtchEvent {
pub struct Contact {
/// onion address / id of the contact
pub onion: String,
s/onion/handle
can't, this is for deserialization
https://git.openprivacy.ca/cwtch.im/libcwtch-go/src/branch/trunk/utils/contacts.go#L5
#[serde(alias = "name")]
@ -61,2 +78,4 @@
/// onion address / id of the contact
pub onion: String,
/// unique identifier of the contact/conversation to be used in API access
pub identifier: i32,
u32?
can't do to auto generated api is i32, we can try and force conversion with.try_into().unwrap() but there's an additional problem in
https://git.openprivacy.ca/cwtch.im/libcwtch-go/src/branch/trunk/lib.go#L799
where we do infact use a negative convo id
@ -68,3 +87,2 @@
pub status: ConnectionState,
/// contact authorization state as set by profile
pub authorization: ContactAuthorization,
/// has the contact been manually accpted
should ideally be packaged inan authorization struct exposing isAccepted() and isBlocked()
@ -71,2 +90,4 @@
/// has the contact been manually blocked
pub blocked: bool,
/// is this contact a group? if so "onion" will be a group ID
pub is_group: bool,
FIXME: deprecate
@ -109,6 +130,103 @@ pub struct Message {
pub d: String,
?
https://git.openprivacy.ca/cwtch.im/cwtch/src/branch/master/model/overlay.go
@ -112,0 +184,4 @@
/// Enum of experiment types that can be managed in Settings
pub enum Experiments {
/// experiment enabeling in app management and running of Cwtch servers
spelling enabling
@ -112,0 +186,4 @@
pub enum Experiments {
/// experiment enabeling in app management and running of Cwtch servers
ServersExperiment,
/// experiment enabeling use of Cwtch groups
spelling enabling
@ -112,0 +188,4 @@
ServersExperiment,
/// experiment enabeling use of Cwtch groups
GroupExperiment,
/// experiment enabeling filesharing
spelling enabling