Skip to content

Commit 131a816

Browse files
committed
move comment
1 parent 9cc1bfd commit 131a816

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/self_reporting.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ struct ChatNumbers {
3636
unencrypted_mua: u32,
3737
}
3838

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.
3945
pub async fn maybe_send_self_report(context: &Context) -> Result<()> {
4046
//#[cfg(target_os = "android")] TODO
4147
if context.get_config_bool(Config::SelfReporting).await? {
@@ -54,11 +60,6 @@ pub async fn maybe_send_self_report(context: &Context) -> Result<()> {
5460
Ok(())
5561
}
5662

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.
6263
async fn send_self_report(context: &Context) -> Result<ChatId> {
6364
info!(context, "Sending self report.");
6465
// Setting `Config::LastHousekeeping` at the beginning avoids endless loops when things do not

0 commit comments

Comments
 (0)