Skip to content

fix: disabled apps activation (WPB-24768) - #5571

Merged
sbakhtiarov merged 3 commits into
developfrom
fix/proteus-apps
Dec 4, 2026
Merged

sbakhtiarov merged 3 commits into
developfrom
fix/proteus-apps

Conversation

@sbakhtiarov

@sbakhtiarov sbakhtiarov commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-24768

https://wearezeta.atlassian.net/browse/WPB-24768

What's new in this PR?

Issues

Android could show Allow apps during group creation even when the team couldn’t use Apps for that conversation. Existing Proteus groups also offered the setting when Apps was off and the team had no whitelisted bots.

Causes (Optional)

Group creation treated a general Apps capability as sufficient without checking the conversation protocol. Existing Proteus group settings assumed legacy bots were available without checking the team’s whitelist.

Solutions

Check the team’s Apps capability for MLS creation and confirm legacy bot availability for Proteus. Hide Allow apps during creation when it’s unavailable and omit the Apps access role from the request. In existing Proteus groups, hide Apps when it’s off and the team has no whitelisted bots. Keep it visible when it’s on so an authorized admin can turn it off. Fetch the whitelist when opening settings or starting a new group or channel, and ignore superseded results.

@pull-request-size

Copy link
Copy Markdown

Ups 🫰🟨

This PR is too big. Please try to break it up into smaller PRs.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

  375 files  + 2    375 suites  +2   2m 3s ⏱️ +2s
3 354 tests +25  3 354 ✅ +25  0 💤 ±0  0 ❌ ±0 
3 366 runs  +25  3 366 ✅ +25  0 💤 ±0  0 ❌ ±0 

Results for commit 486269e. ± Comparison against base commit d922092.

This pull request removes 1 and adds 26 tests. Note that renamed tests count towards both.
com.wire.android.ui.home.conversations.details.updateappsaccess.UpdateAppsAccessViewModelTest ‑ given team does not allow apps, when observing conversation, then apps access update is not allowed()
com.wire.android.mapper.MessageMapperTest ‑ writingDelayLabelRequiresASentMessageWithAValidWritingTime()
com.wire.android.mapper.MessageMapperTest ‑ writingDelayLabelUsesTimeOnlyWhenWrittenAndSentOnTheSameLocalDay()
com.wire.android.ui.home.conversations.details.ProteusGroupAppsSettingsTest ‑ MLS details and toggle never query the legacy whitelist()
com.wire.android.ui.home.conversations.details.ProteusGroupAppsSettingsTest ‑ cancelled settings whitelist lookup cannot overwrite the current result()
com.wire.android.ui.home.conversations.details.ProteusGroupAppsSettingsTest ‑ direct toggle can enable apps only with confirmed bots and owning team authorization()
com.wire.android.ui.home.conversations.details.ProteusGroupAppsSettingsTest ‑ direct toggle cannot bypass ownership or admin permission for disabling apps()
com.wire.android.ui.home.conversations.details.ProteusGroupAppsSettingsTest ‑ disable completion preserves access roles observed while the request was running()
com.wire.android.ui.home.conversations.details.ProteusGroupAppsSettingsTest ‑ off apps require whitelist and access management permission while on apps remain visible()
com.wire.android.ui.home.conversations.details.ProteusGroupAppsSettingsTest ‑ on apps can be disabled without bots and cannot be enabled again through the stale toggle()
com.wire.android.ui.home.conversations.details.ProteusGroupAppsSettingsTest ‑ opening details again checks the whitelist for newly added bots()
…

♻️ This comment has been updated with latest results.

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.32258% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.10%. Comparing base (d922092) to head (486269e).
⚠️ Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
...ails/updateappsaccess/UpdateAppsAccessViewModel.kt 85.13% 1 Missing and 10 partials ⚠️
...i/home/newconversation/NewConversationViewModel.kt 93.61% 0 Missing and 3 partials ⚠️
...tions/details/GroupConversationDetailsViewModel.kt 96.87% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5571      +/-   ##
===========================================
+ Coverage    56.97%   57.10%   +0.13%     
===========================================
  Files          821      821              
  Lines        28598    28729     +131     
  Branches      4440     4491      +51     
===========================================
+ Hits         16294    16406     +112     
- Misses       10876    10879       +3     
- Partials      1428     1444      +16     
Files with missing lines Coverage Δ
...ations/details/options/GroupConversationOptions.kt 0.00% <ø> (ø)
...s/details/options/GroupConversationOptionsState.kt 97.56% <100.00%> (+0.06%) ⬆️
...e/newconversation/groupOptions/GroupOptionState.kt 100.00% <100.00%> (ø)
...tions/details/GroupConversationDetailsViewModel.kt 83.95% <96.87%> (+1.24%) ⬆️
...i/home/newconversation/NewConversationViewModel.kt 81.94% <93.61%> (+2.28%) ⬆️
...ails/updateappsaccess/UpdateAppsAccessViewModel.kt 86.95% <85.13%> (-2.05%) ⬇️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d922092...486269e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sbakhtiarov
sbakhtiarov enabled auto-merge December 4, 2026 17:20
@sbakhtiarov
sbakhtiarov added this pull request to the merge queue Dec 4, 2026
Merged via the queue into develop with commit 728ac6d Dec 4, 2026
23 checks passed
@sbakhtiarov
sbakhtiarov deleted the fix/proteus-apps branch December 4, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants