Skip to content

chore: Merge 4.77.1 into master - #7779

Merged
diegolmello merged 5 commits into
masterfrom
4.77.1
Oct 13, 2026
Merged

diegolmello merged 5 commits into
masterfrom
4.77.1

Conversation

@diegolmello

@diegolmello diegolmello commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Proposed changes

Patch release 4.77.1: the 4.77.0 release plus these fixes, cherry-picked from develop:

#7766, #7754 and #7780 applied with no conflicts. #7755 conflicted in app/lib/methods/helpers/fetch.ts and its test, because the React Native 0.86 upgrade changed that file on develop and is not part of this release. The resolved fetch.ts is identical to develop.

The version is bumped to 4.77.1 in package.json, android/app/build.gradle, both iOS Info.plist files (app and share extension), and both MARKETING_VERSION entries in the Xcode project.

Issue(s)

https://rocketchat.atlassian.net/browse/NATIVE-1736

How to test or reproduce

Categories (#7766):

  1. Log in to a workspace with custom sidebar categories enabled, as a user who has at least one custom category.
  2. Open Settings > Display. The option reads "Categories".
  3. Turn Categories on. The room list shows type groups and the custom categories.
  4. Turn Categories off. The room list shows no type groups and no custom categories.

Attachment credentials (#7754):

  1. Send a message with an image attachment hosted outside the workspace (e.g. through the chat.sendMessage endpoint).
  2. Open the room and let the attachment load.
  3. The image is requested without rc_token/rc_uid.

iOS file preview (#7780):

  1. On iOS, open a room with a PDF attachment and tap it.
  2. The markup (pencil) button shows in the toolbar.
  3. Annotate, rotate or delete a page, then tap Done.
  4. Reopen the PDF: the original attachment is unchanged.

Auth headers (#7755):

  1. Log in to a test server.
  2. Open a deep link for a host that isn't one of your servers, e.g. rocketchat://room?host=http%3A%2F%2Flocalhost%3A8000&path=channel%2Fgeneral, with a local listener logging request headers.
  3. Confirm the dialog: /api/info arrives without X-Auth-Token and X-User-Id.
  4. Open the link again and decline: the host is not contacted and no server is added.
  5. Save Basic auth for the current server and repeat step 3: no Authorization header reaches the other host.
  6. With Basic auth saved, add another workspace from the server list: requests to the new host carry no Authorization header from the current server.

Version:

  1. Check that the app reports version 4.77.1.

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

As a patch, 4.77.1 does not flow through develop; all four fixes are already there.

Summary by CodeRabbit

  • Bug Fixes
    • Custom categories no longer affect room-list grouping when category grouping is disabled. Rooms with deleted categories now appear in the “Channels” group.
    • Improved workspace connection reliability with clearer timeout feedback.
    • Attachment previews and downloads now handle workspace credentials more safely, without sending them to untrusted sites.
    • Hardware back navigation on the add-workspace screen now behaves consistently during connections.
  • Updates
    • Renamed the display preference “Types” to “Categories,” with updated translations across supported languages.
    • Added translated prompts for opening workspace links.
    • Updated the app version to 4.77.1.

@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 73b665e3-876a-4ea9-bccd-a5250753d1ed
📥 Commits

Reviewing files that changed from the base of the PR and between 953fd66 and ac2cc6d.

📒 Files selected for processing (63)
  • app/containers/message/components/Attachments/Reply.tsx
  • app/containers/message/components/Urls.tsx
  • app/containers/message/components/__tests__/Reply.test.tsx
  • app/containers/message/components/__tests__/Urls.test.tsx
  • app/containers/message/hooks/__tests__/useMediaAutoDownload.test.tsx
  • app/i18n/locales/ar.json
  • app/i18n/locales/bn-IN.json
  • app/i18n/locales/cs.json
  • app/i18n/locales/de.json
  • app/i18n/locales/en.json
  • app/i18n/locales/es.json
  • app/i18n/locales/fi.json
  • app/i18n/locales/fr.json
  • app/i18n/locales/hi-IN.json
  • app/i18n/locales/hu.json
  • app/i18n/locales/it.json
  • app/i18n/locales/ja.json
  • app/i18n/locales/nl.json
  • app/i18n/locales/nn.json
  • app/i18n/locales/no.json
  • app/i18n/locales/pt-BR.json
  • app/i18n/locales/pt-PT.json
  • app/i18n/locales/ru.json
  • app/i18n/locales/sl-SI.json
  • app/i18n/locales/sv.json
  • app/i18n/locales/ta-IN.json
  • app/i18n/locales/te-IN.json
  • app/i18n/locales/tr.json
  • app/i18n/locales/zh-CN.json
  • app/i18n/locales/zh-TW.json
  • app/lib/constants/keys.ts
  • app/lib/methods/__tests__/getServerInfo.test.ts
  • app/lib/methods/__tests__/getSettings.test.ts
  • app/lib/methods/__tests__/logout.test.ts
  • app/lib/methods/__tests__/serverBasicAuth.test.ts
  • app/lib/methods/getServerInfo.ts
  • app/lib/methods/getSettings.ts
  • app/lib/methods/helpers/__tests__/fetch.test.ts
  • app/lib/methods/helpers/__tests__/formatAttachmentUrl.test.ts
  • app/lib/methods/helpers/__tests__/getOrigin.test.ts
  • app/lib/methods/helpers/fetch.ts
  • app/lib/methods/helpers/fileDownload.ts
  • app/lib/methods/helpers/formatAttachmentUrl.ts
  • app/lib/methods/helpers/getOrigin.ts
  • app/lib/methods/loggedInServer.ts
  • app/lib/methods/logout.ts
  • app/lib/methods/serverBasicAuth.ts
  • app/lib/services/__tests__/connect.probeAuth.test.ts
  • app/lib/services/__tests__/getServerTimeSync.test.ts
  • app/lib/services/__tests__/restApi.getSupportedVersionsCloud.test.ts
  • app/lib/services/connect.ts
  • app/lib/services/getServerTimeSync.ts
  • app/lib/services/restApi.ts
  • app/lib/testUtils/mockGlobalFetch.ts
  • app/sagas/__tests__/deepLinking.test.ts
  • app/sagas/__tests__/selectServer.test.ts
  • app/sagas/deepLinking.js
  • app/sagas/selectServer.ts
  • app/views/AuthenticationWebView.tsx
  • app/views/NewServerView/__tests__/NewServerView.test.tsx
  • app/views/NewServerView/index.tsx
  • app/views/NewServerView/methods/__tests__/basicAuth.test.ts
  • app/views/NewServerView/methods/basicAuth.ts
🚧 Files skipped from review as they are similar to previous changes (17)
  • app/i18n/locales/en.json
  • app/i18n/locales/nl.json
  • app/i18n/locales/pt-BR.json
  • app/i18n/locales/fr.json
  • app/i18n/locales/bn-IN.json
  • app/i18n/locales/no.json
  • app/i18n/locales/cs.json
  • app/i18n/locales/nn.json
  • app/i18n/locales/sv.json
  • app/i18n/locales/ru.json
  • app/i18n/locales/de.json
  • app/i18n/locales/fi.json
  • app/i18n/locales/te-IN.json
  • app/i18n/locales/hu.json
  • app/i18n/locales/hi-IN.json
  • app/i18n/locales/sl-SI.json
  • app/i18n/locales/ta-IN.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: format
  • GitHub Check: organize-and-commit
🔇 Additional comments (38)
app/views/NewServerView/index.tsx (1)

72-74: LGTM!

Also applies to: 145-148

app/views/NewServerView/__tests__/NewServerView.test.tsx (1)

1-116: LGTM!

app/lib/constants/keys.ts (1)

32-33: LGTM!

app/lib/methods/loggedInServer.ts (1)

2-11: LGTM!

app/lib/methods/helpers/getOrigin.ts (1)

1-18: LGTM!

app/lib/methods/serverBasicAuth.ts (1)

1-34: LGTM!

app/lib/methods/helpers/fetch.ts (1)

5-6: LGTM!

Also applies to: 31-37, 39-48

app/lib/methods/__tests__/serverBasicAuth.test.ts (1)

1-165: LGTM!

app/lib/methods/helpers/__tests__/fetch.test.ts (1)

1-105: LGTM!

app/lib/methods/helpers/__tests__/getOrigin.test.ts (1)

1-48: LGTM!

app/lib/testUtils/mockGlobalFetch.ts (1)

1-24: LGTM!

app/lib/methods/logout.ts (1)

15-15: LGTM!

Also applies to: 32-32

app/views/NewServerView/methods/basicAuth.ts (1)

5-5: LGTM!

Also applies to: 12-12

app/views/NewServerView/methods/__tests__/basicAuth.test.ts (1)

1-35: LGTM!

app/lib/methods/__tests__/logout.test.ts (1)

1-3: LGTM!

Also applies to: 15-53, 66-66

app/lib/methods/getServerInfo.ts (1)

19-20: LGTM!

Also applies to: 53-63, 91-91, 120-120, 138-155

app/lib/methods/__tests__/getServerInfo.test.ts (1)

1-203: LGTM!

app/lib/methods/getSettings.ts (1)

9-9: LGTM!

Also applies to: 113-121, 128-128, 135-137, 179-179

app/lib/methods/__tests__/getSettings.test.ts (1)

1-128: LGTM!

app/lib/services/connect.ts (1)

38-40: LGTM!

Also applies to: 428-438, 455-460, 481-483

app/lib/services/__tests__/connect.probeAuth.test.ts (1)

1-159: LGTM!

app/lib/services/getServerTimeSync.ts (1)

1-1: LGTM!

Also applies to: 5-8

app/lib/services/__tests__/getServerTimeSync.test.ts (1)

1-40: LGTM!

app/lib/services/restApi.ts (1)

1271-1274: LGTM!

app/lib/services/__tests__/restApi.getSupportedVersionsCloud.test.ts (1)

1-37: LGTM!

app/views/AuthenticationWebView.tsx (1)

16-17: LGTM!

Also applies to: 93-95

app/sagas/selectServer.ts (1)

6-6: LGTM!

Also applies to: 25-34, 99-115, 151-151, 165-165, 189-189, 236-261, 291-292

app/sagas/__tests__/selectServer.test.ts (1)

6-13: LGTM!

Also applies to: 75-86, 99-114, 123-123, 204-204, 316-470

app/sagas/deepLinking.js (1)

43-58: LGTM!

Also applies to: 65-67, 115-120, 129-129, 168-168, 171-171, 176-180, 182-182, 319-322, 463-463

app/sagas/__tests__/deepLinking.test.ts (1)

105-106: LGTM!

Also applies to: 119-119, 766-812, 920-1037

app/i18n/locales/ar.json (1)

127-127: LGTM!

Also applies to: 154-156

app/i18n/locales/es.json (1)

115-115: LGTM!

Also applies to: 138-140

app/i18n/locales/it.json (1)

133-133: LGTM!

Also applies to: 161-163

app/i18n/locales/ja.json (1)

126-126: LGTM!

Also applies to: 153-155

app/i18n/locales/pt-PT.json (1)

123-123: LGTM!

Also applies to: 149-151

app/i18n/locales/tr.json (1)

126-126: LGTM!

Also applies to: 153-155

app/i18n/locales/zh-CN.json (1)

126-126: LGTM!

Also applies to: 152-154

app/i18n/locales/zh-TW.json (1)

127-127: LGTM!

Also applies to: 154-156


Walkthrough

The update scopes Basic Auth to workspace origins and adds cancellation to server probing. It adds consent prompts for tokenless deep links to unknown servers, updates attachment URL formatting and room grouping, and changes app and platform version metadata to 4.77.1.

Changes

Workspace Authentication and Server Probing

Layer / File(s) Summary
Workspace credentials and request handling
app/lib/methods/*, app/lib/methods/helpers/*, app/lib/services/*, app/views/AuthenticationWebView.tsx
Basic Auth is stored and applied per workspace. Requests use credentials only for matching origins. Server information, login settings, login services, WebSocket connections, time sync, and cloud lookups support workspace-scoped credentials; several paths accept abort signals.
Server selection and probe lifecycle
app/sagas/selectServer.ts, app/sagas/__tests__/selectServer.test.ts
Server probing groups server information, login services, and login settings under a 30-second timeout. The saga aborts the probe on completion or failure, and applies the selected workspace’s credentials. Tests cover timeout and credential behavior.

Attachment URL Handling

Layer / File(s) Summary
Origin-aware attachment formatting
app/lib/methods/helpers/formatAttachmentUrl.ts, app/lib/methods/helpers/getOrigin.ts, app/lib/methods/helpers/__tests__/*
Attachment URL formatting identifies trusted server, CDN, and site origins. It adds protection parameters only for trusted destinations when file protection is enabled.
Message previews and media consumers
app/containers/message/components/*, app/containers/message/hooks/__tests__/useMediaAutoDownload.test.tsx
Reply thumbnails and URL previews use formatted attachment URLs. Tests cover workspace credentials and third-party URLs. File preview uses Expo Quick Look’s createCopy mode.

Deep-Link Consent and Call Cleanup

Layer / File(s) Summary
Consent decisions and VoIP cleanup
app/sagas/deepLinking.js, app/sagas/__tests__/deepLinking.test.ts, app/i18n/locales/*.json
Deep links prompt for consent when they include a token or target a server without a saved record. Login and open prompts use different text. Declining a VoIP-accept-failure link ends the call and resets VoIP state. Locale files add the prompt, decline, and timeout strings.

Categories Display Grouping

Layer / File(s) Summary
Display preference label and translations
app/views/DisplayPrefsView.tsx, app/i18n/locales/*.json, .maestro/tests/assorted/display-perf.yaml
The preference label and test identifier change to “Categories.” Locale files replace “Types,” and the Maestro check targets the updated preference.
Room-list grouping behavior and tests
app/views/RoomsListView/hooks/groupRooms.ts, app/views/RoomsListView/hooks/useSubscriptions.ts, app/views/RoomsListView/hooks/__tests__/groupRooms.test.ts
Custom category names affect room-list grouping only when type grouping is enabled. Tests cover enabled and disabled options. The deleted-category fallback expectation changes to # Channels.

New Server Navigation

Layer / File(s) Summary
Hardware-back handling
app/views/NewServerView/index.tsx, app/views/NewServerView/__tests__/NewServerView.test.tsx
The hardware-back listener updates when connection state or the previous workspace changes. Back does not reselect a previous workspace while connecting.

Version Update

Layer / File(s) Summary
App and platform version metadata
package.json, android/app/build.gradle, ios/RocketChat.xcodeproj/project.pbxproj, ios/RocketChatRN/Info.plist, ios/ShareRocketChatRN/Info.plist
Package and platform version values change from 4.77.0 to 4.77.1.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant SelectServerSaga
  participant ServerInfo
  participant LoginServices
  participant LoginSettings
  SelectServerSaga->>ServerInfo: Probe with abort signal
  SelectServerSaga->>LoginServices: Load services with abort signal
  SelectServerSaga->>LoginSettings: Load settings with abort signal
  SelectServerSaga->>SelectServerSaga: Abort probe on timeout or completion
Loading

Suggested labels: type: feature, type: bug

Suggested reviewers: otaviostasiak

Merge Risk: ⚪ Minimal · up to ac2cc

The reported test failure does not occur, and declining the call-push prompt does not leave a native VoIP call active. The change is mergeable after normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 42 files. (25 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately identifies this pull request as the 4.77.1 release merge into master. It is concise and consistent with the stated objectives, including the version bump and bundled fixes.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 42 files. (25 skipped: 25 unsupported.)

  • Fix all pre-merge checks with AI
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Errors were encountered while retrieving linked issues.

Errors (1)
  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

iOS Build Available

Rocket.Chat 4.77.1.109913

Rohit3523 and others added 3 commits October 8, 2026 16:01
* fix: scope getServerInfo request headers to known servers

Only attach the stored auth headers when the user is already signed in to
the requested server, and add tests.

* fix: only send auth headers in getServerInfo to servers the user is signed in to

Drops the Basic auth handling and skipCustomHeaders option from the previous commit and reverts fetch.ts to develop.

* remove comment

* coderabbit suggestion

* fix: address review comments for deep-link consent and getServerInfo

- extract getSessionHeaders to fix oxlint complexity
- move getServerInfo test to __tests__ folder
- prompt before first request to new deep-link host

* fix: scope Basic Authorization to requested server in getServerInfo

Load Basic auth only for the requested host and skip global customHeaders so deep links to unknown hosts no longer receive the active workspace credentials.

* refactor: pass serverRecord to ensureDeepLinkLoginConsent and cover the known-host branch

The callers already hold serverRecord, so the consent check no longer re-reads MMKV and the database. The known-host test now uses a server record without a signed-in user so it reaches the new branch.

* fix: scope Basic Authorization on the cloud lookup and add-server requests

getUniqueId and the add-server requests (getLoginServices, getLoginSettings)
still merged the global custom headers, so the current workspace's Basic
Authorization reached the requested host after the scoped /api/info call.

getUniqueId now sends only the requested server's stored Basic auth, and
handleServerRequest points the global Basic auth at the requested server
before making any request.

* fix: keep Basic auth and session headers scoped to the right server

- restore the active workspace's Basic auth when the add-workspace flow is closed
- stop sending the global Basic auth to the releases.rocket.chat lookup
- require the stored token, not only the user id, before sending session headers
- cover the call-push consent branches

* fix: end the VoIP call when the sign-in prompt is declined

* test: restore customHeaders after each fetch test and drop redundant skipCustomHeaders assertions

* revert: move applyBasicAuth handling in selectServer out of this PR

* Revert "revert: move applyBasicAuth handling in selectServer out of this PR"

This reverts commit 48a3f45.

* revert: drop VoIP call cleanup on declined deep-link consent

Reverts 924bbf7. The extra handleVoipAcceptFailed call on the decline
branch is not part of the credential-leak fix this PR is about.

* fix: restore the active workspace's Basic auth when the add-workspace flow finishes

Re-apply the connected workspace's stored Basic auth on FINISH_ADD so a
failed probe can't leave the probed host's header on later requests.

* fix: restore the active workspace's Basic auth as soon as the add-workspace probe ends

handleServerRequest swaps the global Basic auth to the probed host and
only handed it back on FINISH_ADD, so a failed connect left the active
workspace's requests carrying the wrong Authorization until the form
unmounted. Restore it in a finally block instead and drop the FINISH_ADD
watcher, which keyed off sdk.host before the new connection existed.

* fix: address review comments on scoped probe auth and deep-link consent

- Guard hardware back while the add-workspace check runs so the
  active workspace Basic auth can't leak to the probed host
- Drop the redundant global Basic auth write in NewServerView
- Let fetch callers' headers win over global custom headers and add
  the getBasicAuthKey helper
- Send per-request Basic auth in getLoginServices/getLoginSettings and
  scope the global swap in getWebsocketInfo to the handshake only, so
  the probe no longer touches the shared headers
- Thread the requested server version through the cloud unique-id lookup
- Neutral deep-link consent copy for tokenless links

* chore(i18n): add Deep_link_open_* strings for tokenless deep-link consent

* refactor: simplify scoped Basic auth handling and share stored-session lookup

- keep the add-workspace websocket handshake swap inline in getWebsocketInfo
- read the stored user id and token through getStoredSession everywhere
- select the deep-link consent copy from a table instead of repeated ternaries
- only swallow hardware back while connecting when there is a workspace to return to
- remove explanatory comments from tests

* refactor: fold add-workspace back guard into handleBackPress

* test: cover the add-workspace hardware back guard in NewServerView

* fix: restore the active workspace headers before the add-workspace handshake settles

* fix: scope the auto-lock time sync request to the requested server's Basic auth

* refactor: share applyBasicAuth and finish the deep-link consent rename

* fix: end the VoIP call when the deep-link open prompt is declined

Also rename shouldAutoConfirmDeepLinkLogin to shouldAutoConfirmDeepLinkConsent now that it gates both prompts.

* test: seed a stale header in the reselect test and use ~/ imports in the new tests

* fix: skip the DM navigation when the deep-link open prompt is declined after a failed VoIP accept

Declining the prompt only needs to end the call and reset the VoIP state. Running the full failed-accept handler also tried to open a DM with the caller on the active workspace, which is not the host the user declined.

* fix: send Basic auth to the iframe SSO endpoint only on the server's own origin

The iframe login fetch went through the shared headers, so it carried the active workspace's Basic Authorization to whatever host Accounts_Iframe_api_url points at. It now sends the stored Basic auth only when the URL has the same origin as the server.

* test: drop dead active-server setup from the probeAuth tests

* refactor: restore isLoggedInServer to read only the user id

* test: use ~/ imports for collaborators in getServerInfo and getLoginSettings tests

* test: move logout test into __tests__ and use ~/ paths in jest.mock calls

* test: use fake timers in getServerTimeSync tests to stop leaking the race timeout

* test path fix

* test: drive the probe handshake through the real SDK so header timing is pinned at WebSocket construction

* refactor: rename getBasicAuthHeader module to serverBasicAuth

* fix: send /api/info the requested server's own stored session

* refactor: read the stored session through getStoredSession in removeServer

test: cover the back handler when connecting flips after mount

* fix: send each page of the public settings fetch the requested server's own Basic auth

* refactor: address review feedback on basic auth and deep-link consent helpers

Drop the unreachable early-return applyBasicAuth and its test, fold setBasicAuth into applyBasicAuth, rename the probe test array, and pass isKnownHost to ensureDeepLinkConsent.

* fix: time out the add-workspace probe when the host never answers

Race the probe against a 30s timer so a host that accepts the connection and never responds can't leave the user stuck on Add workspace, and show a dedicated Connection_timed_out message.

* fix: abort the add-workspace probe requests when it times out or is superseded

A probe that timed out kept its settings and login-services requests running, so a late reply could overwrite the active workspace's settings. The probe now shares one abort signal across its requests and closes the websocket probe on abort.

* using workspace instead of server

* some more changes

* refactor: share the workspace basic auth helpers and abort the whole add-workspace probe

Every per-workspace request now goes through fetchForWorkspace, and the websocket handshake header swap through withBasicAuth, both in serverBasicAuth, so a call site can no longer forget to scope the Basic auth. The probe's abort signal now also reaches the /api/info, unique-id and supported-versions requests; an abort that comes from that signal leaves the store alone instead of failing the active workspace's connection. The NewServerView back handler is back to plain functions with explicit effect deps, the getLoginSettings tests live in getSettings.test.ts, and the fetch spy shared by the basic auth tests is testUtils/mockGlobalFetch.

* refactor: drop unrequested renames in logout test and deep-link auto-confirm helper

* fix: send the shared Basic auth only to the workspace origin

fetch attaches the shared Authorization only to the origin applyBasicAuth recorded it for, and fetchForWorkspace sends the stored Basic auth only to the server's own origin. This replaces the per-call Authorization overrides on the supported-versions lookup and the iframe SSO request, and moves the origin comparison into isSameOrigin next to getOrigin.

* refactor: restore the inline session read in removeServer

Logout is left for a follow-up, so removeServer reads the stored user id and token the way it did before.

* refactor: let the deep-link callers decide whether consent is needed

Drops the isKnownHost flag from ensureDeepLinkConsent. handleOpenDifferentServer and handleClickCallPush now skip the prompt for known hosts without a token.

* test: move the logout test into __tests__

Uses ~/ paths in the jest.mock calls.

* refactor: share the deep-link consent predicate between both callers

handleOpenDifferentServer and handleClickCallPush repeated the same
"token or unknown host" condition, which pushed handleClickCallPush over
the cognitive complexity limit. Name it once as requiresDeepLinkConsent.

* refactor: keep the add-workspace probe result typed through the timeout race
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

iOS Build Available

Rocket.Chat 4.77.1.109944

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Android Build Available

Rocket.Chat 4.77.1.109941

@diegolmello
diegolmello merged commit 307c7f7 into master Oct 13, 2026
17 of 18 checks passed
@diegolmello
diegolmello deleted the 4.77.1 branch October 13, 2026 12:17
@diegolmello diegolmello mentioned this pull request Oct 13, 2026
3 of 10 tasks

This branch had an error being deployed

1 failed, 1 active, and 2 inactive deployments
upload_android — ac2cc6dc Deployed Oct 8, 2026 by diegolmello via Build Android / Upload Hold #7117
ios_build — ac2cc6dc Deployed Oct 8, 2026 by diegolmello via Build iOS / Hold #7117
android_build — ac2cc6dc Deployed Oct 8, 2026 by diegolmello via Build Android / Hold #7117
approve_e2e_testing — ac2cc6dc Deployed Oct 8, 2026 by diegolmello via E2E Hold #7117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants