Fixed crash + prevent background mode from turning ON when doing a remote provisioning if an account is already configured

This commit is contained in:
Sylvain Berfini 2026-02-03 14:05:55 +01:00
parent 959744bb52
commit c9fdbf6f9d
3 changed files with 7 additions and 1 deletions

View file

@ -55,6 +55,7 @@ Group changes to describe their impact on the project, as follows:
- Updated password forgotten procedure, will use online account manager platform
### Fixed
- Prevent crash & background mode from turning on when doing a remote provisioning if an account is already configured
- Copy raw message content instead of modified one when it contains a participant mention ("@username")
- Do not apply Crashlytics plugin if it's not enabled

View file

@ -626,6 +626,11 @@ class ContactsManager
Log.w("$TAG Core has been stopped")
coroutineScope.cancel()
knownContactsAvatarsMap.clear()
unknownContactsAvatarsMap.clear()
conferenceAvatarMap.clear()
magicSearchMap.clear()
core.removeListener(coreListener)
for (list in core.friendsLists) {

View file

@ -519,7 +519,7 @@ class CoreContext
Log.i(
"$TAG New account configured: [${account.params.identityAddress?.asStringUriOnly()}]"
)
if (!core.isPushNotificationAvailable || !account.params.isPushNotificationAvailable) {
if (!account.params.isPushNotificationAvailable) {
if (!corePreferences.keepServiceAlive) {
Log.w(
"$TAG Newly added account (or the whole Core) doesn't support push notifications, enabling keep-alive foreground service..."