File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ struct ChatNumbers {
36
36
unencrypted_mua : u32 ,
37
37
}
38
38
39
+ /// Sends a message with statistics about the usage of Delta Chat,
40
+ /// if the last time such a message was sent
41
+ /// was more than a week ago.
42
+ ///
43
+ /// On the other end, a bot will receive the message and make it available
44
+ /// to Delta Chat's developers.
39
45
pub async fn maybe_send_self_report ( context : & Context ) -> Result < ( ) > {
40
46
//#[cfg(target_os = "android")] TODO
41
47
if context. get_config_bool ( Config :: SelfReporting ) . await ? {
@@ -54,11 +60,6 @@ pub async fn maybe_send_self_report(context: &Context) -> Result<()> {
54
60
Ok ( ( ) )
55
61
}
56
62
57
- /// Drafts a message with statistics about the usage of Delta Chat.
58
- /// The user can inspect the message if they want, and then hit "Send".
59
- ///
60
- /// On the other end, a bot will receive the message and make it available
61
- /// to Delta Chat's developers.
62
63
async fn send_self_report ( context : & Context ) -> Result < ChatId > {
63
64
info ! ( context, "Sending self report." ) ;
64
65
// Setting `Config::LastHousekeeping` at the beginning avoids endless loops when things do not
You can’t perform that action at this time.
0 commit comments