Closed r10s closed 1 month ago
did some investigations:
we need to know if all profiles are chatmail profiles or not
that information seems not to be available after configure()
- but only a moment later after connecting to IMAP
for the first account, things usually work asking the user if they want to use notifications or not delay things long enough, so that isChatmail()
becomes valid - but this seems random, may still fail when tapping quick
for the second account, the question is not triggered, so the isChatmail()
check is done too quickly and not correct yet
@link2xt is that correct? or did android sth wrong? could core easily provide the information after configure()? if that is too complicated or would delay things otherwise, we should look for alternative approaches, eg:
we can skip the check if things are not yet connected to IMAP - but afaik, we do not even know that (there is no isConnected() for $reasons) - so, maybe isChatmail should get the state "not yet determined" EDIT: there is dc_get_connectivity()
- so maybe we should just delay the question in case dc_get_connectivity()
is not connected/working
maybe it is also good enough to always delay the question by a few seconds
maybe say that the current state is even good enough - in the past, the question was just triggered always, also for the first account.
we can say, that this is not a bug, but we skip the question with best effort only.
when using only chatmail accounts, the question about "disable battery optimisations" is not needed.
however, sometimes it pops up even then.
one way to reproduce:
-> question about "disable battery optimisations" is shown.
it is important to have a fresh install so that the system/deltachat does not block the question by other reasons.