[PR #2111] [MERGED] [SG-691] Login request is not displayed after changing accounts #3359

Closed
opened 2025-11-26 23:31:41 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/2111
Author: @andrebispo5
Created: 10/3/2022
Status: Merged
Merged: 10/3/2022
Merged by: @andrebispo5

Base: masterHead: bugfix/SG-691-login-request-accountswitch


📝 Commits (2)

  • 2f0450d [SG-691] Added new message to be broadcasted when account is switched to trigger a check for login requests.
  • e5f4f9c [SG-691] PR fixes

📊 Changes

5 files changed (+12 additions, -6 deletions)

View changed files

📝 src/Android/MainApplication.cs (+3 -2)
📝 src/App/App.xaml.cs (+1 -1)
📝 src/App/Utilities/AccountManagement/AccountsManager.cs (+5 -2)
📝 src/Core/Utilities/AccountsManagerMessageCommands.cs (+1 -0)
📝 src/iOS.Core/Utilities/iOSCoreHelpers.cs (+2 -1)

📄 Description

… to trigger a check for login requests.

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

When the user have more than one account logged in and sends a login request for the not active (still unlocked) account , The user sees the push notification but when switches to the account that received the request the user is not being redirected to the login request screen.

Code changes

Passwordless request check was not being triggered because there was no "unlock" message being broadcasted. Added new broadcast message when account is switched to trigger passwordless login requests check.

Screenshots

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/2111 **Author:** [@andrebispo5](https://github.com/andrebispo5) **Created:** 10/3/2022 **Status:** ✅ Merged **Merged:** 10/3/2022 **Merged by:** [@andrebispo5](https://github.com/andrebispo5) **Base:** `master` ← **Head:** `bugfix/SG-691-login-request-accountswitch` --- ### 📝 Commits (2) - [`2f0450d`](https://github.com/bitwarden/android/commit/2f0450d77ff9bff2a3f5c8bc4a5314bc693014d5) [SG-691] Added new message to be broadcasted when account is switched to trigger a check for login requests. - [`e5f4f9c`](https://github.com/bitwarden/android/commit/e5f4f9cea21867b6fa6fad7a4b761aec87f127c7) [SG-691] PR fixes ### 📊 Changes **5 files changed** (+12 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/Android/MainApplication.cs` (+3 -2) 📝 `src/App/App.xaml.cs` (+1 -1) 📝 `src/App/Utilities/AccountManagement/AccountsManager.cs` (+5 -2) 📝 `src/Core/Utilities/AccountsManagerMessageCommands.cs` (+1 -0) 📝 `src/iOS.Core/Utilities/iOSCoreHelpers.cs` (+2 -1) </details> ### 📄 Description … to trigger a check for login requests. ## Type of change - [x] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective <!--Describe what the purpose of this PR is. For example: what bug you're fixing or what new feature you're adding--> When the user have more than one account logged in and sends a login request for the not active (still unlocked) account , The user sees the push notification but when switches to the account that received the request the user is not being redirected to the login request screen. ## Code changes <!--Explain the changes you've made to each file or major component. This should help the reviewer understand your changes--> <!--Also refer to any related changes or PRs in other repositories--> Passwordless request check was not being triggered because there was no "unlock" message being broadcasted. Added new broadcast message when account is switched to trigger passwordless login requests check. ## Screenshots <!--Required for any UI changes. Delete if not applicable--> ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-26 23:31:41 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#3359