Skip to content

fix: guest mode for new channel (WPB-28029) - #5318

Open
sbakhtiarov wants to merge 2 commits into
developfrom
fix/channel-guest-mode
Open

sbakhtiarov wants to merge 2 commits into
developfrom
fix/channel-guest-mode

Conversation

@sbakhtiarov

@sbakhtiarov sbakhtiarov commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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

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

What's new in this PR?

Issues

Backend-created channels could incorrectly show Guest Access as ON and allow link creation that the backend rejects.

Solutions

Use Kalium’s combined Guest Access check, block link creation while access is disabled or updating, and preserve existing guest permissions when changing Apps Access.

@codecov

codecov Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 54.36%. Comparing base (e86f203) to head (1c45e4f).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
...ails/updateappsaccess/UpdateAppsAccessViewModel.kt 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5318      +/-   ##
===========================================
+ Coverage    54.33%   54.36%   +0.03%     
===========================================
  Files          757      757              
  Lines        26489    26490       +1     
  Branches      4384     4389       +5     
===========================================
+ Hits         14392    14402      +10     
+ Misses       10696    10688       -8     
+ Partials      1401     1400       -1     
Files with missing lines Coverage Δ
...tions/details/GroupConversationDetailsViewModel.kt 83.09% <100.00%> (ø)
...etails/editguestaccess/EditGuestAccessViewModel.kt 82.96% <100.00%> (+7.02%) ⬆️
...ails/updateappsaccess/UpdateAppsAccessViewModel.kt 89.10% <88.88%> (-1.09%) ⬇️

... and 1 file 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 e86f203...1c45e4f. Read the comment docs.

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

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

  347 files  ± 0    347 suites  ±0   1m 45s ⏱️ -4s
2 854 tests +10  2 854 ✅ +10  0 💤 ±0  0 ❌ ±0 
2 860 runs  +10  2 860 ✅ +10  0 💤 ±0  0 ❌ ±0 

Results for commit 1c45e4f. ± Comparison against base commit e86f203.

♻️ This comment has been updated with latest results.

@github-actions

Copy link
Copy Markdown
Contributor

APKs built during tests are available here. Scroll down to Artifacts!

Comment on lines 230 to 235
fun onRequestGuestRoomLink() {
if (shouldDisableGenerateGuestLinkButton()) return
viewModelScope.launch {
if (shouldDisableGenerateGuestLinkButton()) return@launch
safeCreateGuestLink(null)
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is there a reason to duplicate shouldDisableGenerateGuestLinkButton() check ?

This branch has not been deployed

No deployments
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