File tree 1 file changed +5
-0
lines changed
deltachat-jsonrpc/src/api/types
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ pub enum Account {
17
17
// size: u32,
18
18
profile_image : Option < String > , // TODO: This needs to be converted to work with blob http server.
19
19
color : String ,
20
+ /// Optional tag as "Work", "Family".
21
+ /// Meant to help profile owner to differ between profiles with similar names.
22
+ private_tag : Option < String > ,
20
23
} ,
21
24
#[ serde( rename_all = "camelCase" ) ]
22
25
Unconfigured { id : u32 } ,
@@ -31,12 +34,14 @@ impl Account {
31
34
let color = color_int_to_hex_string (
32
35
Contact :: get_by_id ( ctx, ContactId :: SELF ) . await ?. get_color ( ) ,
33
36
) ;
37
+ let private_tag = ctx. get_config ( Config :: PrivateTag ) . await ?;
34
38
Ok ( Account :: Configured {
35
39
id,
36
40
display_name,
37
41
addr,
38
42
profile_image,
39
43
color,
44
+ private_tag,
40
45
} )
41
46
} else {
42
47
Ok ( Account :: Unconfigured { id } )
You can’t perform that action at this time.
0 commit comments