-
-
Notifications
You must be signed in to change notification settings - Fork 103
feat: Donation request device message (#6913) #6914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
29f4d6f
to
0f69230
Compare
0f69230
to
4c6888d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for pushing that forward!
i find review a bit hard because of non-telling names, what about using sth. as
days_until_first_donation_request
, days_until_next_donation_request
and LastDonationRequestTimestamp
(instead of period_check, period_msg, DonationRequestTs)?
also, not sure if it is needed to check on every sending of a message - even though the expensive check seems to be called only if clock is later than LastDonationRequestTimestamp
. but maybe that's fine, no blocker.
for the expensive sql command: the mentioned corner case in the issue is about shared-usage or classic-usage, if ppl are doing that they seem to be into delta chat as well, as we do not download history. if would keep it simple here and look at all messages
also, i would add the message only if there are more messages, eg. 100, 10 messages is not really real usage.
finally, the stock string is missing in the deltachat.h
4c6888d
to
56d79ef
Compare
Renamed to
We have the config cache, so looking at
Removed the check for whether a message is encrypted. Now it should be fast because we have
Made it 50. 100 looks too much for me personally, maybe on average people chat more, idk.
Fixed. |
after some internal discussions with @adbenitez and others:
|
If there are at least {10,30,70...} outgoing delivered encrypted messages, add a donation request device messaage, but not more than once every two weeks.
- Get rid of `Config::DonationRequestMsgCnt` and geometric progression, limit requests to one per 60 days instead. - Don't filter out trashed messages, if a message is sent, the app is used.
56d79ef
to
cc2d59c
Compare
Done (
After 60 days then, it checks every 30 days now (instead of 14).
Changed to "development costs money", but for me "development takes/requires money" sounds better. "costs money" is like wanting to charge the reader at market price. But it's just my personal perception.
Done. |
No tests yet, have done a quick check in Desktop.
Close #6913
EDIT: Initial/recheck period is 30 days now. The device message is added only once.