Skip to content
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

Fix various crashes an 1.5.30, observed when no network is available. #8542

Closed
wants to merge 3 commits into from

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Jun 15, 2023

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Fix several crashes observed when the device cannot reach the homeserver. The main change is regarding the BootstrapBottomSheet. There is new screen displayed when the device is not able to get the KeyBackup status:

image

The others fixes are smaller, into dedicated commits.

Note This PR is base on Element Android 1.5.30 version (commit 0b09a51) but will be created again on the latest develop branch.

Motivation and context

Improve stability of the application.

Screenshots / GIFs

Tests

  • Enter airplane mode and:
  • Click on Set up Secure Backup in Settings/ Security & Privacy
  • Click on Allow integration in Settings/ General

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@bmarty bmarty requested a review from BillCarsonFr June 15, 2023 12:46
Copy link
Contributor

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, we just need to apply it on top of the new code I guess

Copy link
Member

@BillCarsonFr BillCarsonFr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM juqt a quick comment

@@ -82,7 +83,9 @@ internal class SyncResponsePostTreatmentAggregatorHandler @Inject constructor(
}
}
if (hasUpdate) {
updateUserAccountDataTask.execute(UpdateUserAccountDataTask.DirectChatParams(directMessages = directChats))
tryOrNull("Unable to update user account data") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it fails will it retry next sync or is lost?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it fails, it will not be retried on next sync.

@bmarty bmarty mentioned this pull request Jul 11, 2023
@bmarty
Copy link
Member Author

bmarty commented Jul 11, 2023

Replaced by #8578 on top of develop.

@bmarty bmarty closed this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants