Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
bfdbf01
feat: Opt-in weekly sending of statistics
Hocuri Aug 14, 2025
a1c8beb
small renames
Hocuri Aug 14, 2025
dd3ef4b
fix: Don't reset last_old_contact_id if the user disables&reenables t…
Hocuri Aug 14, 2025
a152d8e
Skip serializing bot, direct_chat, and new if they are false
Hocuri Aug 15, 2025
3ba68a6
Move a struct
Hocuri Aug 15, 2025
4f973be
fix: Looks like yerpc doesn't allow me to have optional parameters
Hocuri Aug 15, 2025
23b8fda
fix: Don't send statistics from a platform other than Android
Hocuri Aug 15, 2025
e283df8
small comment fix
Hocuri Aug 15, 2025
8e3f2e5
cargo fmt
Hocuri Aug 15, 2025
7986b11
clippy
Hocuri Aug 15, 2025
228eda8
Increase sending interval to 1 week
Hocuri Aug 15, 2025
e478341
Document SecurejoinSource
Hocuri Aug 23, 2025
5fac395
refactor: Prefix all relevant configs with `stats`
Hocuri Aug 23, 2025
a3a02e9
some more of iequidoo's suggestions
Hocuri Aug 23, 2025
ebf0a2d
Update src/statistics.rs
Hocuri Aug 25, 2025
7d6aebf
some more of iequidoo's suggestions
Hocuri Aug 23, 2025
c21b8d3
iequidoo's review: Make sure statistics are sent again after rewound …
Hocuri Aug 25, 2025
7ef56d6
iequidoo's review: Rename get_statistics_bot() -> get_statistics_chat…
Hocuri Aug 25, 2025
b77c815
iequidoo's second review
Hocuri Aug 27, 2025
3295ed4
feat: Set the StatsLastSent setting after sending statistics
Hocuri Aug 27, 2025
6c592d9
fix: StatsId is not a bool
Hocuri Aug 27, 2025
c8f58c4
Merge remote-tracking branch 'origin/main' into hoc/send-statistics-s…
Hocuri Sep 18, 2025
52c3157
iequidoo's review
Hocuri Sep 18, 2025
5fc13fd
feat: Make the message statistics aggregate
Hocuri Sep 19, 2025
6d985cd
refactor: Always use "stats", rather than a mix of "statistics" and "…
Hocuri Sep 19, 2025
4c2c312
Small tweaks
Hocuri Sep 19, 2025
e7a6d08
refactor: Extract has_time_passed()
Hocuri Sep 19, 2025
54c4200
Merge remote-tracking branch 'origin/main' into hoc/send-statistics-s…
Hocuri Sep 19, 2025
94a0c14
Merge remote-tracking branch 'origin/main' into hoc/send-statistics-s…
Hocuri Oct 8, 2025
ac370c6
--wip-- [skip ci]
Hocuri Oct 10, 2025
6401875
Make sure that the stats_id is set right after enabling stats sending
Hocuri Oct 10, 2025
dc1f100
iequidoo's review
Hocuri Oct 15, 2025
e745ab0
Update src/config.rs
Hocuri Oct 15, 2025
1bcbb94
Fix tests
Hocuri Oct 16, 2025
749ec74
Merge remote-tracking branch 'origin/main' into hoc/send-statistics-s…
Hocuri Oct 16, 2025
0112010
remove superflous function call
Hocuri Oct 16, 2025
18bf91f
Rename stats_msgs
Hocuri Oct 16, 2025
ee2e91c
Rename wrongly-named stock string
Hocuri Oct 16, 2025
40fd5ae
Rename set_last_counted_msg_id->ensure_last_counted_msg_id
Hocuri Oct 18, 2025
230c058
Use an enum in JsonRPC API
Hocuri Oct 18, 2025
5eadf47
Adapt documentation
Hocuri Oct 18, 2025
d2271e4
Rename SecurejoinUiPath
Hocuri Oct 18, 2025
cbc548c
feat: Record the timestamp of enabling/disabling StatsSending
Hocuri Oct 20, 2025
21ad5d0
feat: Only count messages sent while stats-sending was enabled
Hocuri Oct 20, 2025
f15ba62
refactor: Rename stats_message_body -> stats_msg_body
Hocuri Oct 20, 2025
15a72e3
Update deltachat-jsonrpc/src/api.rs
Hocuri Oct 21, 2025
4925a8c
reviews
Hocuri Oct 21, 2025
b234433
Merge remote-tracking branch 'origin/main' into hoc/send-statistics-s…
Hocuri Oct 21, 2025
e86aae8
Adapt to the removal of protected chats
Hocuri Oct 21, 2025
6799b81
clippy
Hocuri Oct 21, 2025
b95fbc9
fix: Set stats sending interval to 1 week
Hocuri Oct 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async fn send_stats(context: &Context) -> Result<ChatId> {
let chat_id = get_stats_chat_id(context).await?;

let mut msg = Message::new(Viewtype::File);
msg.set_text(crate::stock_str::stats_device_message(context).await);
msg.set_text(crate::stock_str::stats_message_body(context).await);

let stats = get_stats(context).await?;

Expand Down
7 changes: 5 additions & 2 deletions src/stock_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,9 @@ https://delta.chat/donate"))]
#[strum(props(fallback = "Scan to join channel %1$s"))]
SecureJoinBrodcastQRDescription = 201,

#[strum(props(fallback = "todo"))]
#[strum(props(
fallback = "The attachment contains anonymous usage statistics, which helps us improve Delta Chat. Thank you!"
))]
StatsMessageBody = 210,
Comment thread
Hocuri marked this conversation as resolved.
Outdated
}

Expand Down Expand Up @@ -1290,7 +1292,8 @@ pub(crate) async fn unencrypted_email(context: &Context, provider: &str) -> Stri
.replace1(provider)
}

pub(crate) async fn stats_device_message(context: &Context) -> String {
/// Stock string: `The attachment contains anonymous usage statistics, which helps us improve Delta Chat. Thank you!`
pub(crate) async fn stats_message_body(context: &Context) -> String {
translated(context, StockMessage::StatsMessageBody).await
}

Expand Down