[PR #1796] [MERGED] Clear send service cache on account switch #3133

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

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/1796
Author: @mpbw2
Created: 2/22/2022
Status: Merged
Merged: 2/22/2022
Merged by: @mpbw2

Base: accountswitchingHead: accountswitching-clearsendcache


📝 Commits (1)

  • 298c489 clear send service cache on account switch

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 src/App/Utilities/AppHelpers.cs (+2 -0)

📄 Description

Type of change

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

Objective

Missed the Send service cache reset when switching users, making the Sends appear to be identical across multiple accounts.

Code changes

  • AppHelpers.cs: Resolve SendService and call ClearCache when switching accounts

Testing requirements

https://app.asana.com/0/1201803072708593/1201862267238033

Before you submit

  • I have added unit tests where it makes sense to do so (encouraged but not required)
  • This change requires a documentation update (notify the documentation team)
  • 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/1796 **Author:** [@mpbw2](https://github.com/mpbw2) **Created:** 2/22/2022 **Status:** ✅ Merged **Merged:** 2/22/2022 **Merged by:** [@mpbw2](https://github.com/mpbw2) **Base:** `accountswitching` ← **Head:** `accountswitching-clearsendcache` --- ### 📝 Commits (1) - [`298c489`](https://github.com/bitwarden/android/commit/298c4894220abc69bcde48e296e113fb60e623a7) clear send service cache on account switch ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/App/Utilities/AppHelpers.cs` (+2 -0) </details> ### 📄 Description ## Type of change - [X] Bug fix - [X] 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--> Missed the Send service cache reset when switching users, making the Sends appear to be identical across multiple accounts. ## 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--> * **AppHelpers.cs:** Resolve SendService and call `ClearCache` when switching accounts ## Testing requirements <!--What functionality requires testing by QA? This includes testing new behavior and regression testing--> https://app.asana.com/0/1201803072708593/1201862267238033 ## Before you submit - [ ] I have added **unit tests** where it makes sense to do so (encouraged but not required) - [ ] This change requires a **documentation update** (notify the documentation team) - [ ] 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:28:43 -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#3133