Repository navigation
chore: Merge 4.78.0 into master - #7874
Merged
Merged
Conversation
* chore: replace react-native-restart with expo reloadAppAsync * chore: replace react-native-background-timer with setInterval * chore: bump react-native-localize to 3.7.0 * chore: replace react-native-file-viewer with expo-quick-look * chore: migrate from expo-av to expo-audio and expo-video (#6719) * chore: bump react-native-mmkv and react-native-nitro-modules * chore: drop dead react-native-mmkv patch and tighten its jest mock * chore: RN 0.86 / Expo 57 dependencies, toolchain and patches (#7693) * chore: upgrade dependencies and patches to RN 0.86 / Expo 57 * chore: align upgrade toolchain floors and CI checks * chore: update Jest toolchain for RN 0.86 and Expo 57 * fix: adapt app code to React Native 0.86 and Expo 57 (#7694) * fix: adapt app code to React Native 0.86 and Expo 57 * test: await scheduled gesture and floating date callbacks * fix(ios): support React Native 0.86 and Expo 57 (#7696) * fix(ios): support React Native 0.86 and Expo 57 * test: fix jest failures under Node 22 Resolve Expo's lazy fetch global in jest setup so suites that fully mock react-native no longer crash when jest enumerates globals at teardown. Restore real timers only after Testing Library unmounts, so immediates scheduled with fake timers are cancelled with the same clock. * fix(android): adopt Expo 57 autolinking plugin and drop jcenter from patched libraries Expo 57 removed scripts/autolinking.gradle in favour of the expo-autolinking-settings and expo-root-project Gradle plugins. Gradle 9 removed jcenter(), which @react-native-cookies/cookies and react-native-math-view still declared. Bump the iOS Pods cache key so runners stop restoring Local Podspecs generated for the previous React Native version. * fix(android): build with React Native 0.86 codegen and Expo 57 prebuilt modules Bump @react-native/codegen, babel-preset and typescript-config to 0.86.3 so libraries stop resolving the stale 0.80 codegen. Build the four patched Expo packages from source, since Expo 57 ships prebuilt Android artifacts that ignore patch-package changes. Patch camera-roll to drop string literal unions from its spec, keyboard-controller for the non-null onConfigurationChanged signature, math-view to drop the removed UIManagerModuleListener import, and expo-font for the nullable loadedFonts field. Declare androidx.localbroadcastmanager explicitly and resolve the WRITE_EXTERNAL_STORAGE maxSdkVersion manifest conflict. * fix: drop undefined request headers rejected by Expo fetch Expo 57 installs its native fetch as the global and rejects header entries whose value is undefined. getServerInfo sent X-Auth-Token and X-User-Id as undefined before login, so every deep link login fell back to the Add workspace screen and all E2E flows failed. * test(e2e): wait for LoginView transition before keyboard navigation * fix(login): keep focus on the password field when submitting with a hardware keyboard * fix(ios): compile the release bundle with the hermesc matching the bundled Hermes runtime * fix(ios): expose room header testIDs to accessibility tree An accessible wrapper around the room header hides its children from XCUITest on React Native 0.86, so Maestro could not find the header title or the header button. Move the accessibility label and role to the pressable header, which already exposes its children. * fix(ios): expose rooms list header testIDs to accessibility tree Same cause as the room header: an accessible wrapper inside the native stack header hides its children from XCUITest, so Maestro could not find the servers list button. * fix(ios): bump react-native-linear-gradient to 2.8.3 to stop zero-size layer crash on mention autocomplete * fix(ios): address upgrade review feedback * fix(ios): exclude Android keyboard flow change * fix: update Android build for React Native 0.86 (#7695) * fix: update Android build for React Native 0.86 * fix: restore Android Gradle 9 compatibility * fix: align React Native codegen version * fix: resolve Android storage permission merge * fix: patch Android modules for React Native 0.86 * fix: restore Android local broadcast dependency * fix: build patched Expo modules from source * fix: raise iOS deployment target to 16.4 for Expo 57 * fix: materialize expo fetch global before jest mocks * fix: keep setImmediate real under jest fake timers * fix: key iOS pods cache by Podfile.lock hash * fix: allow non-modular React includes in framework modules * fix: drop undefined header values before fetch expo/fetch, installed as the global fetch on native by Expo 57, forwards header entries to the native request verbatim, so an undefined value fails the Kotlin cast to Pair<String, String> and rejects the whole request. * fix: build React-Core from source instead of prebuilt * fix: match Expo import access level with generated provider * fix: adopt Expo 57 AppDelegate contract * fix: compile Hermes bytecode with the legacy compiler * fix: expose header test ids on iOS * fix: expose team channels header test id * fix: remove iOS changes from Android upgrade * ci: make TypeScript check blocking again * fix: restore default submit behavior on login email field * fix: keep test identifiers on iOS accessibility elements * fix: expose test identifiers on accessible elements * fix: keep a single test identifier per element * fix: remove OrSeparator from accessibility focus chain * chore(ios): re-enable prebuilt React-Core and Hermes V1 (#7698) Removed the three Podfile opt-outs (RCT_USE_PREBUILT_RNCORE, RCT_USE_RN_DEP, RCT_HERMES_V1_ENABLED) and the HERMES_CLI_PATH post_install override, letting React Native 0.86 use its prebuilt React-Core/ReactNativeDependencies tarball and Hermes V1 (250829098.0.17) instead of building from source. Dropped the RCTViewManager accessibility-role patch: it only touched the Paper renderer, the app runs on Fabric, and the file no longer compiles under prebuilt Core. VoiceOver role-update behavior is covered by manual smoke testing, not this patch. RNFB pods forced to static libraries in the pre_install hook to avoid a non-modular-include failure on RNFB 21.x; the fix ships in react-native-firebase >= 26.3.0, so this can be dropped on that bump. SocketRocket now ships vendored inside the ReactNativeDependencies xcframework under a namespaced header path, so SSLPinning.mm's import changed from a flat "SRWebSocket.h" to <SocketRocket/SRWebSocket.h>. Copy Pods Resources phases regenerated by pod install, dropping the boost/glog/RCT-Folly privacy bundles that no longer exist as separate pods. * fix(e2e): anchor keyboard navigation login on focus (#7703) * fix(e2e): reach login email field by focus instead of Dpad count The keyboard navigation onboarding flow walked to the email field with four blind Remote Dpad Down presses. Removing the decorative OR separator from the accessibility focus chain shortened the chain by one, so the email was typed into the password field and the password into the email field, and login was never submitted. Press Down until login-view-email reports focused, bounded by times: 10, and assert focus before typing. Maestro returns normally when a repeat bound is exhausted, so without the assertion an over-long chain would fail later at the rooms-list-view wait with an unrelated error. The separator only renders when totalServices > 0, so the chain length depends on server config and no fixed count is correct. * fix(e2e): reach password and submit by focus, hide keyboard first Anchoring the email field exposed two more blind steps in the same flow. The hop to the password field assumed Enter moves focus, and the submit assumed Enter on the password field logs in. Neither had been exercised before, because the flow failed earlier. Press Down until each target reports focused, bounded and asserted like the email field. The submit loop needs the soft keyboard hidden first: with the keyboard up the Dpad presses go to the input method and never reach the login screen, so the submit button is never focused. * chore(deps): bump reanimated to 4.6.0 and worklets to 0.12.2 (#7706) * chore(deps): bump reanimated to 4.6.0 and worklets to 0.12.2 Reanimated 4.6.0 requires react-native-worklets 0.12.x, so both move together. Worklets drops its caret to match reanimated's exact pin. Reanimated 4.6.0 initializes CSS event handling at import time, which the JS-only fallback used by Jest does not implement, so the mock entry point throws on load. Stubbing setCSSEventHandler at its source keeps the rest of the proxy module real. * chore(ios): update Podfile.lock for reanimated and worklets CocoaPods preserves versions already in Podfile.lock, so pod install would not have picked these up on its own. * chore(ios): bump ffi to 1.17.4 for Xcode 27 compatibility * chore(deps): bump react-native-screens to 4.28.0 (#7709) * chore(deps): bump @react-navigation family (#7710) * chore(deps): bump react-native-safe-area-context to 5.10.0 (#7711) * fix(ios): adopt UIScene lifecycle for iOS 27 iOS 27 SDK requires scene-based app lifecycle. The app now uses Expo's ExpoAppSceneDelegate via a new SceneDelegate, with startReactNative and boot splash initialization moved out of the app delegate into the scene delegate. * fix(android): stop gesture-handler buttons hijacking hardware Enter/D-pad The RN 0.86 gesture-handler bump added an Android-only onKeyUp override that intercepts DPAD_CENTER/ENTER/SPACE and activates whichever button currently holds native view focus, bypassing the default performClick() path. Every composer and header icon button is a BorderlessButton, so this silently fired the wrong button (e.g. the header drawer button) on hardware Enter/D-pad and swallowed the key event elsewhere. Removed the hunk; the iOS press-handling hunk is untouched. * fix(a11y): close drawer when navigating to the focused sidebar route (#7717) * fix(a11y): close drawer when navigating to the focused sidebar route Tapping a sidebar entry for the route already focused left the drawer open, because the drawer router only closes it when the focused index changes. Subsequent taps were swallowed by the drawer scrim. * chore(e2e): map ToastsAndDialogs flow to SidebarView The flow reaches Accessibility & appearance through the sidebar, so a change under app/views/SidebarView can break it. Without this the impact analysis never selects its shard for sidebar-only changes. * ci(ios): restore Xcode version pin * ci(ios): pin Xcode 26.6 * chore: tidy RN 0.86 upgrade leftovers * chore(deps): upgrade react-native-gesture-handler to 3.3.0 (#7726) * chore(deps): bump react-native-gesture-handler to 3.3.0 * refactor: migrate gestures to the gesture handler 3 hook API * refactor: replace deprecated gesture handler buttons with Touchable * chore(ios): update Podfile.lock for react-native-gesture-handler 3.3.0 * fix: restore disabled state on Touch after gesture handler 3 migration * fix(android): enable nested scroll on reactions lists inside the action sheet * fix(android): activate focused gesture-handler buttons on hardware Enter/D-pad * test: refresh audio button snapshots after gesture handler upgrade * fix: restore React Native Gradle plugin composite build --------- Co-authored-by: OtavioStasiak <otaviostasiakmusic@outlook.com>
* chore: match web copy for undecryptable e2e messages * tests * i18n * action: organized translations --------- Co-authored-by: OtavioStasiak <OtavioStasiak@users.noreply.github.com>
* chore: replace react-native-restart with expo reloadAppAsync * chore: replace react-native-background-timer with setInterval * chore: bump react-native-localize to 3.7.0 * chore: replace react-native-file-viewer with expo-quick-look * chore: migrate from expo-av to expo-audio and expo-video (#6719) * chore: bump react-native-mmkv and react-native-nitro-modules * chore: drop dead react-native-mmkv patch and tighten its jest mock * chore: RN 0.86 / Expo 57 dependencies, toolchain and patches (#7693) * chore: upgrade dependencies and patches to RN 0.86 / Expo 57 * chore: align upgrade toolchain floors and CI checks * chore: update Jest toolchain for RN 0.86 and Expo 57 * fix: adapt app code to React Native 0.86 and Expo 57 (#7694) * fix: adapt app code to React Native 0.86 and Expo 57 * test: await scheduled gesture and floating date callbacks * fix(ios): support React Native 0.86 and Expo 57 (#7696) * fix(ios): support React Native 0.86 and Expo 57 * test: fix jest failures under Node 22 Resolve Expo's lazy fetch global in jest setup so suites that fully mock react-native no longer crash when jest enumerates globals at teardown. Restore real timers only after Testing Library unmounts, so immediates scheduled with fake timers are cancelled with the same clock. * fix(android): adopt Expo 57 autolinking plugin and drop jcenter from patched libraries Expo 57 removed scripts/autolinking.gradle in favour of the expo-autolinking-settings and expo-root-project Gradle plugins. Gradle 9 removed jcenter(), which @react-native-cookies/cookies and react-native-math-view still declared. Bump the iOS Pods cache key so runners stop restoring Local Podspecs generated for the previous React Native version. * fix(android): build with React Native 0.86 codegen and Expo 57 prebuilt modules Bump @react-native/codegen, babel-preset and typescript-config to 0.86.3 so libraries stop resolving the stale 0.80 codegen. Build the four patched Expo packages from source, since Expo 57 ships prebuilt Android artifacts that ignore patch-package changes. Patch camera-roll to drop string literal unions from its spec, keyboard-controller for the non-null onConfigurationChanged signature, math-view to drop the removed UIManagerModuleListener import, and expo-font for the nullable loadedFonts field. Declare androidx.localbroadcastmanager explicitly and resolve the WRITE_EXTERNAL_STORAGE maxSdkVersion manifest conflict. * fix: drop undefined request headers rejected by Expo fetch Expo 57 installs its native fetch as the global and rejects header entries whose value is undefined. getServerInfo sent X-Auth-Token and X-User-Id as undefined before login, so every deep link login fell back to the Add workspace screen and all E2E flows failed. * test(e2e): wait for LoginView transition before keyboard navigation * fix(login): keep focus on the password field when submitting with a hardware keyboard * fix(ios): compile the release bundle with the hermesc matching the bundled Hermes runtime * fix(ios): expose room header testIDs to accessibility tree An accessible wrapper around the room header hides its children from XCUITest on React Native 0.86, so Maestro could not find the header title or the header button. Move the accessibility label and role to the pressable header, which already exposes its children. * fix(ios): expose rooms list header testIDs to accessibility tree Same cause as the room header: an accessible wrapper inside the native stack header hides its children from XCUITest, so Maestro could not find the servers list button. * fix(ios): bump react-native-linear-gradient to 2.8.3 to stop zero-size layer crash on mention autocomplete * fix(ios): address upgrade review feedback * fix(ios): exclude Android keyboard flow change * fix: update Android build for React Native 0.86 (#7695) * fix: update Android build for React Native 0.86 * fix: restore Android Gradle 9 compatibility * fix: align React Native codegen version * fix: resolve Android storage permission merge * fix: patch Android modules for React Native 0.86 * fix: restore Android local broadcast dependency * fix: build patched Expo modules from source * fix: raise iOS deployment target to 16.4 for Expo 57 * fix: materialize expo fetch global before jest mocks * fix: keep setImmediate real under jest fake timers * fix: key iOS pods cache by Podfile.lock hash * fix: allow non-modular React includes in framework modules * fix: drop undefined header values before fetch expo/fetch, installed as the global fetch on native by Expo 57, forwards header entries to the native request verbatim, so an undefined value fails the Kotlin cast to Pair<String, String> and rejects the whole request. * fix: build React-Core from source instead of prebuilt * fix: match Expo import access level with generated provider * fix: adopt Expo 57 AppDelegate contract * fix: compile Hermes bytecode with the legacy compiler * fix: expose header test ids on iOS * fix: expose team channels header test id * fix: remove iOS changes from Android upgrade * ci: make TypeScript check blocking again * fix: restore default submit behavior on login email field * fix: keep test identifiers on iOS accessibility elements * fix: expose test identifiers on accessible elements * fix: keep a single test identifier per element * fix: remove OrSeparator from accessibility focus chain * chore(ios): re-enable prebuilt React-Core and Hermes V1 (#7698) Removed the three Podfile opt-outs (RCT_USE_PREBUILT_RNCORE, RCT_USE_RN_DEP, RCT_HERMES_V1_ENABLED) and the HERMES_CLI_PATH post_install override, letting React Native 0.86 use its prebuilt React-Core/ReactNativeDependencies tarball and Hermes V1 (250829098.0.17) instead of building from source. Dropped the RCTViewManager accessibility-role patch: it only touched the Paper renderer, the app runs on Fabric, and the file no longer compiles under prebuilt Core. VoiceOver role-update behavior is covered by manual smoke testing, not this patch. RNFB pods forced to static libraries in the pre_install hook to avoid a non-modular-include failure on RNFB 21.x; the fix ships in react-native-firebase >= 26.3.0, so this can be dropped on that bump. SocketRocket now ships vendored inside the ReactNativeDependencies xcframework under a namespaced header path, so SSLPinning.mm's import changed from a flat "SRWebSocket.h" to <SocketRocket/SRWebSocket.h>. Copy Pods Resources phases regenerated by pod install, dropping the boost/glog/RCT-Folly privacy bundles that no longer exist as separate pods. * fix(e2e): anchor keyboard navigation login on focus (#7703) * fix(e2e): reach login email field by focus instead of Dpad count The keyboard navigation onboarding flow walked to the email field with four blind Remote Dpad Down presses. Removing the decorative OR separator from the accessibility focus chain shortened the chain by one, so the email was typed into the password field and the password into the email field, and login was never submitted. Press Down until login-view-email reports focused, bounded by times: 10, and assert focus before typing. Maestro returns normally when a repeat bound is exhausted, so without the assertion an over-long chain would fail later at the rooms-list-view wait with an unrelated error. The separator only renders when totalServices > 0, so the chain length depends on server config and no fixed count is correct. * fix(e2e): reach password and submit by focus, hide keyboard first Anchoring the email field exposed two more blind steps in the same flow. The hop to the password field assumed Enter moves focus, and the submit assumed Enter on the password field logs in. Neither had been exercised before, because the flow failed earlier. Press Down until each target reports focused, bounded and asserted like the email field. The submit loop needs the soft keyboard hidden first: with the keyboard up the Dpad presses go to the input method and never reach the login screen, so the submit button is never focused. * chore(deps): bump reanimated to 4.6.0 and worklets to 0.12.2 (#7706) * chore(deps): bump reanimated to 4.6.0 and worklets to 0.12.2 Reanimated 4.6.0 requires react-native-worklets 0.12.x, so both move together. Worklets drops its caret to match reanimated's exact pin. Reanimated 4.6.0 initializes CSS event handling at import time, which the JS-only fallback used by Jest does not implement, so the mock entry point throws on load. Stubbing setCSSEventHandler at its source keeps the rest of the proxy module real. * chore(ios): update Podfile.lock for reanimated and worklets CocoaPods preserves versions already in Podfile.lock, so pod install would not have picked these up on its own. * chore(ios): bump ffi to 1.17.4 for Xcode 27 compatibility * chore(deps): bump react-native-screens to 4.28.0 (#7709) * chore(deps): bump @react-navigation family (#7710) * chore(deps): bump react-native-safe-area-context to 5.10.0 (#7711) * fix(ios): adopt UIScene lifecycle for iOS 27 iOS 27 SDK requires scene-based app lifecycle. The app now uses Expo's ExpoAppSceneDelegate via a new SceneDelegate, with startReactNative and boot splash initialization moved out of the app delegate into the scene delegate. * fix(android): stop gesture-handler buttons hijacking hardware Enter/D-pad The RN 0.86 gesture-handler bump added an Android-only onKeyUp override that intercepts DPAD_CENTER/ENTER/SPACE and activates whichever button currently holds native view focus, bypassing the default performClick() path. Every composer and header icon button is a BorderlessButton, so this silently fired the wrong button (e.g. the header drawer button) on hardware Enter/D-pad and swallowed the key event elsewhere. Removed the hunk; the iOS press-handling hunk is untouched. * fix(room-list): close other swiped room items when a new one opens Track the currently open swipeable room item in a single UI-thread mutable value (openSwipeItemId) instead of per-item state. Every Touchable reacts to that value and springs itself closed once another row claims it, so only one room can be swiped open at a time. Tapping a room, long-pressing it, or opening its own actions all clear or reassign ownership. Also replaces the abrupt default spring with an explicit, softer config (damping/mass/stiffness) shared by every open/close animation. * test(room-list): drop tautological swipe test, keep mock reverted openSwipeItem.test.ts only asserted that a shared value keeps what was written to it, which added no coverage. GestureDetector/pan behavior isn't exercisable through the existing jest reanimated mocks (useAnimatedReaction is a no-op), so a real cross-row close test isn't practical here without a broader mocking change. Revert the makeMutable jest mock added for that test since nothing else in the suite needs it. * fix(room-list): close open row on press-in of another row * wip: gesture manual restructuring attempt (bisect checkpoint) * fix(room-list): close open swipe row via plain JS registry * fix(room-list): swallow tap that only closes another open row * fix(room-list): close other row's swipe animation from the UI thread Route the cross-row close through a Reanimated shared-value registry so tapping row 2 starts row 1's spring close synchronously on the UI thread, from the pan gesture's onBegin worklet, instead of waiting for a JS-thread hop via scheduleOnRN. The JS-thread round trip could be delayed by other work on that thread, stalling the animation partway through and making it finish as a single jump instead of a smooth spring. * feat(room-list): WhatsApp-style swipe actions and release spring * fix(room-list): match left action width and tighten swipe release rules Left action opens to one action width like each right action. Haptic on the full-swipe threshold fires on both sides and only while the finger is down. Release opens a side only past half an action width; an open row stays open unless swiped fully closed. Release decision extracted to getSwipeRelease with tests. * fix(room-list): refresh row when its record changes Row read state, title, avatar and invite state now come from a useSyncExternalStore subscription to the record, since the compiler cached them on the in-place mutated record. The custom memo comparator is removed. Thread unreads count as unread, matching the badge. * refactor(room-list): write gesture flag with shared value set * fix(a11y): close drawer when navigating to the focused sidebar route (#7717) * fix(a11y): close drawer when navigating to the focused sidebar route Tapping a sidebar entry for the route already focused left the drawer open, because the drawer router only closes it when the focused index changes. Subsequent taps were swallowed by the drawer scrim. * chore(e2e): map ToastsAndDialogs flow to SidebarView The flow reaches Accessibility & appearance through the sidebar, so a change under app/views/SidebarView can break it. Without this the impact analysis never selects its shard for sidebar-only changes. * fix(room-list): show selected room tint only in master-detail On iPhone the row got the tablet selected-room tint while the room was subscribed, so a tap flashed a second time before navigating and the row stayed tinted during the interactive back-swipe. * fix(room-list): re-render row on every record change * fix(room-list): read swipe offset from shared value * test(room-list): assert close resets translation * refactor(room-list): observe row record without opting out of the compiler * fix(room-list): reset closed-row tap guard on every touch * fix(room-list): close previously open row when another row opens * refactor(room-list): address review feedback * ci(ios): restore Xcode version pin * ci(ios): pin Xcode 26.6 * perf(room-list): mount swipe actions only while the row is moved * chore: tidy RN 0.86 upgrade leftovers * chore(deps): upgrade react-native-gesture-handler to 3.3.0 (#7726) * chore(deps): bump react-native-gesture-handler to 3.3.0 * refactor: migrate gestures to the gesture handler 3 hook API * refactor: replace deprecated gesture handler buttons with Touchable * chore(ios): update Podfile.lock for react-native-gesture-handler 3.3.0 * fix: restore disabled state on Touch after gesture handler 3 migration * fix(android): enable nested scroll on reactions lists inside the action sheet * fix(android): activate focused gesture-handler buttons on hardware Enter/D-pad * test: refresh audio button snapshots after gesture handler upgrade * fix: restore React Native Gradle plugin composite build * refactor(RoomItem): settle swipe on the UI thread and mirror it in RTL Derive the open side from the resting offset instead of a separate row state, release and register the row inside the gesture worklet, fire the threshold haptic from the pan update, and flip gesture input and output once for right-to-left layouts. Drop the duplicate long-press gesture and skip the snapshot rebuild on the record's initial emission. * fix(RoomItem): close the open row when a swipe-disabled row is tapped * refactor(RoomItem): move swipe utils and room snapshot hook into subfolders --------- Co-authored-by: OtavioStasiak <otaviostasiakmusic@outlook.com>
* fix: composer placeholder fits the input width * fix: composer shows the message text when editing it
* fix: Directory list drops, repeats and mixes rows when paging * chore: remove inaccurate comment on Directory initial search effect * fix: Directory drops repeated rooms within a page and stale pages during search debounce * fix: hide previous Directory results while a new search is pending
Loading @rocket.chat/ui-kit and @rocket.chat/message-parser on first use made the first block message in a room take ~100 ms to mount. The rooms list now loads both when the JS thread is idle. MessageBlock is now a stable component, so a re-render no longer remounts the block subtree, and rendered blocks are keyed, which removes the missing-key error on InfoCard.
* perf: read avatar ETag synchronously on first render Avatars used to render twice on mount: once with an empty ETag, then again after an async WatermelonDB lookup resolved. The ETag is now read synchronously through the JSI adapter and kept in sync with useSyncExternalStore, and the Redux config reads collapse into one structured selector. * test: reset avatar ETag mocks between tests * test: mock useAvatarETag in the global jest setup
* chore: refresh agent docs and add coding standards Trim CONTEXT.md, fix stale CLAUDE.md/README claims (Android 7.0+, bundle install, pnpm test), add CODING_STANDARDS.md for reviewers, complete the CI call graph, point the PR template at this repo's CONTRIBUTING.md, and drop the dead 'e2e' jest ignore that skipped every test in paths containing e2e. * chore: drop restated lint config and CI call graph, flag tautological tests * chore: add comment and test rules to coding standards
…ount (#7774) The flow opened the drawer and pressed Left, Down, Down to reach Accessibility & Appearance. Left only moved focus because every room row kept its swipe action buttons mounted behind the row, and Down from one of those hidden buttons landed on the drawer's Profile item. Swipe actions now mount only while a row is swiped, so Left has nowhere to go and the two Downs stop on Edit status. Press Down until the Accessibility item holds focus, bounded and asserted like the login steps in the onboarding flow. The focused view is the keyboard-focus wrapper, which carries no testID, so the selector matches it by its sidebar-accessibility descendant.
* 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
* chore: add react-doctor * refactor: use shared value get/set so React Compiler compiles animated components * refactor: declare functions before effects use them * refactor: use useWatch and drop try/finally so React Compiler compiles form views * chore: run the pinned react-doctor * fix: report room loading in the same render as a rid swap * refactor: derive state in render instead of syncing it from effects * fix: flag the next 2FA prompt as invalid after a rejected code The retry read twoFactorCode from a stale render closure, so it was always null and the second prompt never showed the invalid state. Keep it in a ref instead. * refactor: retry the profile password change directly and drop the runInit comment * chore: pin react-doctor to an exact version * refactor: keep values that never render in refs * refactor: initialize state lazily * refactor: use per-method lodash imports, Set lookups and Object.fromEntries * refactor: check room action permissions in parallel * refactor: drop try/finally and redundant memoization so React Compiler compiles more views * chore: run react-doctor through npx latest instead of a pinned devDependency * refactor: compute values before try blocks so React Compiler compiles more views * fix: save the latest composer text as the draft * fix: guard 2FA error details and validate the values ProfileView submits * refactor: resolve quote permalinks in parallel and batch presence writes * refactor: use Set lookups for selected options, roles and setting keys * refactor: render header and list items inline instead of nested components * refactor: derive loading and user roles in render instead of setting them in effects * chore: waive react-doctor findings with documented reasons * refactor: save the composer draft from a single effect * refactor: check room action permissions in one hasPermission call * fix: ignore endpoint responses that arrive after a newer request * fix: skip unresolved permalinks when quoting messages
* fix: URL preview card no longer shifts the room on open * test: update URL story snapshots for the reserved preview image * fix: bound URL preview image height before the width is measured
* feat: open video conferences in workspace conference window * coderabbit changes * fix: set host-only conference auth cookies via setFromResponse * fix: harden the conference window against logout, iframes and stale calls Review follow-ups on the workspace conference window: - Clear the call state and expire the seeded rc_uid/rc_token cookies on logout. The overlay is mounted outside the navigator, so nothing else unmounted it: the minimized bar rendered over the login screen and expanding it produced a webview with no route to dismiss it. - Honour isTopFrame in onShouldStartLoadWithRequest. iOS reports subframe navigations there too, so a cross-origin provider embed was being cancelled and handed to the external browser. - Gate the feature on a secure server. Cleartext workspaces now fall back to the regular join flow instead of loading a page that the webview's own guards then reject. - Correlate the preflight carry-over on rid, so joining a call from another room no longer inherits the previous room's page. - Add a minimize control to the overlay, pop ConferenceView when the call ended under another screen, and drop the call when the server changes. - Surface load failures with retry/close instead of a blank overlay. - Keep the minimized bar off RoomView's composer. - Fix the IPv6 loopback allowance, which never matched WHATWG's bracketed hostname, and keep the injected bridge script ES5. - Only request ACCESS_FINE_LOCATION on API 29/30, and declare BLUETOOTH_SCAN as neverForLocation. Move isConferenceWindowEnabled to methods/helpers and drop the unused useConferenceWindow hook. * refactor: return to a conference call from the media call header Replace the custom "Return to call" bar with MediaCallHeader, the header the VoIP call already uses, so both call types are returned to the same way. The header is a flow sibling above the navigator rather than an overlay, so screen content is pushed down instead of covered — which also removes the bar's overlap with RoomView's composer. When no VoIP call is active and a conference call is, the header renders the conference row: expand, the call title, and end call, built from the same HeaderButton primitives. A VoIP call still wins if both somehow exist, which isInActiveVoipCall already prevents. Extract expand/minimize/close into conferenceCallNavigation so the header, the webview overlay and openConferenceCall cannot disagree about what each one means, and keep the store itself free of navigation. * fix: drop the overlay minimize button from the conference call The conference page provides its own controls, so the button duplicated them and overlapped the page's call timer. Remove it, along with the minimizeConferenceCall action and the Minimize_call string it was the only user of. ConferenceView still reports the minimize on blur, so popping the route keeps the call alive in the background. * fix: gate conference bridge on per-session token and pop conference on server switch - Mint an unguessable bridgeToken per WebView mount and require it on incoming rc-conference messages, so cross-origin child frames on Android cannot forge close/openInMainWindow. - Use closeConferenceCall() for the server-change cleanup so the empty ConferenceView route is popped when it is showing. * fix: always request Android BT permission and sync conference cookies with credentials * more changes * refactor: harden conference call navigation and logout cleanup - expandConferenceCall no-ops with no active call instead of pushing an empty ConferenceView - ConferenceView selects store fns individually and guards back() against deep-link races - logout uses closeConferenceCall so the route pops; removeServer also clears server cookies - align ConferenceViewScreen wrapper with JitsiMeetViewScreen * fix: gate conference credentials on same-origin and drop stale opens - ConferenceWebView injects cookies, Cookie header and bridge credentials only when the url matches the server origin, not merely HTTPS - openConferenceCall drops a pending open invalidated by close/logout/server-switch via a generation counter plus a server re-check * fix: close conference window review findings Address six issues found reviewing the branch against develop, plus two tests that never exercised the guards they claimed to. - ConferenceWebView: the same-origin navigation guard failed open on Android. react-native-webview builds the synchronous shouldOverrideUrlLoading event without isTopFrame (only the legacy fallback event sets it), so `!isTopFrame` was always true and every navigation skipped isConferenceUrl — handing the bridge script, the login token and the rc_uid/rc_token cookies to any origin. Test for `isTopFrame === false` instead; Android never raises this callback for inner frames, so nothing legitimate is blocked. - deepLinking: handleNavigateCallRoom still passed the old positional `true` after videoConfJoin moved to an options object, so fromPush and rid both destructured to undefined — push-accepted joins reported error-init-video-conf instead of Missed_call, and rid never reached openConferenceCall. - setServerCookies: the new secure-url check broke Jitsi auth on cleartext self-hosted servers, which JitsiMeetView swallowed before mounting the WebView with no credentials. Add an explicit allowInsecureServer opt-in for that caller; the conference window still refuses cleartext upstream. - ConferenceWebView: the cookie effect reset cookiesSet, which gates mounting the WebView, so a mid-call token refresh tore down the live WebRTC session. Write the cookies without unmounting. - Move ConferenceView from ChatsStack to the root InsideStack, next to CallView. MediaCallHeader is mounted app-wide, so "return to call" from Settings, Profile or Admin set expanded without the navigate ever resolving, leaving a full-screen overlay nothing could minimize. - openConferenceCall: throw for the states it cannot serve (window disabled, un-buildable url) so callers surface an error instead of the user tapping Join to no effect; stay quiet only for calls the user themselves superseded. Add the missing alert in useVideoConf. The two openConferenceCall tests covering the generation guard and the server-changed check resolved their permission mock before it was called, so they threw before asserting. Await the request instead; both now fail if either guard is removed. * fix: gate trusted conference mount on per-server cookie write * fix: scope conference cookies to the workspace path * fix: restrict conference window.open() to http(s) urls * more changes * style fix * remove screenshare as it is not showing alert * fix: request BLUETOOTH_CONNECT for call audio on Android 12+ WebRTC audio in the conference and Jitsi WebViews routes via the OS audio manager, so BT headsets need BLUETOOTH_CONNECT at runtime on API 31+. Declare it in the manifest (audio-only, neverForLocation) and request it in the shared VoIP permission helper without blocking the call on denial. Also gate the trusted WebView mount per-URL so trusted->trusted switches re-write cookies. * fix: address coderabbit review 5209937314 - gate conference WebView mount on successful cookie write with retry - reject unsafe credential values in server cookies - scope conference calls to owning server * fix: address coderabbit review 5210904214 * refactor: gate the conference window on the livekit provider, not a client setting VideoConf_Conference_Window_Enabled only ever encoded web-only UI concerns (popout reuse, ongoing-calls list) and had no bearing on whether the /conference/:id page actually works — so mobile was gating on the wrong signal. Branch on providerName from the capabilities/join responses already being fetched instead, which reflects the real per-call provider and keeps old servers on the legacy Jitsi/link flow automatically. * remove comment... * some cleanup * Change status bar color and change permission to allow media all time * test fix * fix: require https before attaching conference credentials isSecureHttpUrl allowed http loopback for local-dev navigation, but ConferenceWebView reused it to gate cookies, the credential bridge, and the Cookie header too — leaking rc_token in cleartext for an http loopback server. Gate credentialsAllowed and setServerCookies on a strict https check instead, keeping loopback http navigable but never credentialed. * chore: remove review comments * fix: use theme colors for conference background * feat: add Return_to_call translations to all locales * chore: replace magic number with HEADER_TOP_PADDING in MediaCallHeader --------- Co-authored-by: Diego Mello <diegolmello@gmail.com>
* ci: prefix build release notes with PR BUILD / DEVELOP BUILD * ci: drop emojis from build release notes prefix
…o rooms.history rest (#7793) * chore: migrate loadNextMessages DDP method to GET rooms.history The loadNextMessages DDP method is removed in server 9.0.0. On servers >= 8.9.0 the Newer Loader now loads through GET /v1/rooms.history; older servers keep the DDP call. An empty response removes the Newer Loader row instead of leaving it stuck. * test: assert the Newer Loader row in one expectation * fix: return rooms.history _updatedAt as a Date so thread rows keep updating updateMessages compares stored thread rows against the incoming _updatedAt with <, which is always false for an ISO string. The DDP reply carried Dates, so the REST path stopped updating existing threads and thread_messages rows from the Newer Loader. * fix: convert a string _updatedAt to a Date in normalizeMessage updateMessages compares stored thread rows against the incoming _updatedAt with <, which is always false for an ISO string. Convert it where the message is normalized instead of in getNextMessages, so every REST loader feeding updateMessages gets the comparison right. Dates, numbers and a missing value are left as they were. * test: cover an ISO string _updatedAt through updateMessages with the real buildMessage The existing thread tests mock buildMessage as identity and use numeric _updatedAt, so they pass with or without the Date conversion. Run the thread and thread message update paths through the real buildMessage with a stored Date and an incoming ISO string. * fix: convert _updatedAt to a Date in getNextMessages instead of normalizeMessage The rooms.history response carries ISO strings, which never compare as newer in the thread branches of updateMessages. Converting in the REST branch of the wrapper keeps normalizeMessage, loadMessagesForRoom and loadMissedMessages unchanged, so those loaders do not start refreshing stored thread rows and overwriting their downloaded file:// title_link. * refactor: make loadNextMessages an async function * chore: format the rooms.history type and import auxStore by alias in its test * refactor: use getTime() for the rooms.history cursor instead of tsToMs * chore: remove duplicate ejson import and pass runSlashCommand params as an object * revert: restore runSlashCommand positional params * chore: migrate loadSurroundingMessages DDP method to GET rooms.history The loadSurroundingMessages DDP method is deprecated and removed in server 9.0.0 in favor of the aroundId param of GET /v1/rooms.history. Servers >= 8.9.0 now use the endpoint through a new getSurroundingMessages wrapper; older servers keep the DDP call. * fix: keep the loadNextMessages DDP argument unchanged and offset only the rooms.history cursor * refactor: type the loadSurroundingMessages dep as IMessage[] and drop the cast in resolveJumpAnchor * refactor: share one rooms.history helper between the wrappers and reject getSurroundingMessages when the DDP method returns nothing * fix: request thread replies from rooms.history so the loaders store the same rows as the DDP methods * refactor: name the newest loaded timestamp behind the rooms.history next cursor * test: pin the jump cancel when the server Chunk fails to load and use CONTEXT.md terms in test titles * fix: keep milliseconds on the Older Loader timestamp so Load more can fetch same-second messages --------- Co-authored-by: Diego Mello <diegolmello@gmail.com>
The RoomView function-component migration started passing `label={undefined}`
to HeaderBackButton when there are no unreads (it used to pass ' '). On iOS
the label is rendered inside RNCMaskedView, a legacy (Paper) view mounted
through Fabric's legacy interop layer. Its layout-only label wrapper is
flattened, so the label texts are direct children of the masked view: 2
children without a label, 4 with one. When the label appears, disappears and
appears again, the interop layer inserts the last text at index 3 into a
2-element reactSubviews array and throws NSRangeException
"index 3 beyond bounds [0 .. 1]".
Always passing a blank label keeps the masked view's children stable, as
before 4.77.0.
* feat: apps engine action buttons in the composer action sheet * feat: apps engine action button store, filters and translations * chore: format code and fix lint issues * feat: trigger apps engine action buttons * chore: new i18n labels * chore: unit tests * feat: useAppActionButtons * action: organized translations * fix: remove unused imports * fix: translation * chore: rollback unused changes * code improvements * chore: move UIKit action handlers to app/lib/apps * e2e tests * fix: e2e tests * fix: reset apps store on disconnect * fix: resubscribe apps stream on reconnect * chore: drop apps barrel, emit toasts via typed emitter * fix: send tmid with composer ai actions * fix: scope apps stream refetches and room button filtering * refactor: move apps stream into connect/login, unify toast and apps fetch * refactor: normalize app translations once, drop joined hook keys and comments * ix: keep app buttons on failed or stale fetches, type actionButton interactions * fix: guard missing app languages and catch stream-apps subscribe failure * cleanup * refactor: trim unused app action paths and handle unsupported interactions in actions.ts * fix: handle slow app replies and close the modal on an unknown submit result * fix: keep app trigger ids alive for stream replies and close modals from the stream * fix: refetch apps on every login and keep modals open unless the app closes them * fix: close modals only on an explicit modal.close and refetch buttons on app changes * ix: close app modals after a submit unless the app updates them or returns errors * match submit app with web * refactor: check app interaction type in one place and mark triggers handled only after a modal can be shown * refactor: extract action button interaction to reduce toUserInteraction complexity * fix: replace the app modal on modal.open instead of closing it after submit * refactor: simplify app trigger interaction and break translations import cycle * refactor: build typed action button interaction where the context is known * refactor: simplify app action button memo deps and trigger tracking * refactor: drop unused app action contexts and redundant slash command catch * cleanup * fix: close slash command preview without waiting for the server Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep app action buttons across refetches with unchanged permissions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: refresh app modals reopened with the same view id and close them from the stream Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: check app button permissions against workspace roles only, as on web Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: share one press handler for composer app actions and tidy apps imports and tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: cover app modal close paths and pass the subscription to the room filter Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: close the app modal after a submit answered with a surface mobile can't show, as on web Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep the app modal open on errors and view updates whatever the trigger state, as on web Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: state the app modal keep-open rule once with the existing modal constants Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: build the composer app action options in one hook Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: drop the unused return value of handlePayloadUserInteraction Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: merge the last two exits of postUserInteraction Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: report whether a block action closes the modal as a boolean, like submit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: require rid for app action buttons and skip composer app options outside a room Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: type trigger inputs, press through fireEvent and drop tests that repeat the implementation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: close the app modal when the stream closes it after the request settled, as on web Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: drop app action tests that pass whatever the code does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor: skip the app button room query when there is no room Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: map the uikit flows to the apps fetch, block action and apps stream setup Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: don't go back from an app modal that was already dismissed when its submit settles Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: drop app replies after modal.close or disconnect, merge the app action modules - modal.close over HTTP discards its trigger id, so a later stream modal.open can't reopen the modal - disconnect clears pending trigger ids, so a late reply can't open a modal on the next workspace - triggerActions.ts folds into actions.ts; tests cover the public functions through fetch - tests for the app action error toast and the silenced 404 - poll flow waits for the modal to close after submit; test map adds rooms.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * improvements * cleanup --------- Co-authored-by: OtavioStasiak <OtavioStasiak@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix: keep jump-to-message target in view while the list settles * test: migrate e2e suite from Maestro to the e2e runner Port every Maestro flow to e2e tests under e2e/tests, driven by @e2e-dev/mobile on iOS and Android. Replace the Maestro CI workflows and scripts with e2e-android/e2e-ios workflows, shard assertion and output redaction, point the sniffler test map at the new tests, and remove .maestro. * fix: focus join code input after the modal finishes opening * test: harden flaky e2e flows on Android and iOS * test: wait for share view before sending and uncover optional taps * test: skip share extension test on Android until the deep link fix lands * test: harden e2e flows against slow joins, closing sheets and expired admin sessions - Log the API helper in again once when the server rejects its session - Fill the composer only once the closing message actions sheet uncovers it - Retry the long-press when the message actions sheet does not open - Wait for the join system message before acting on a just-joined room - Give the encrypted quote block the long timeout * ci: pass OAuth token to e2e report redaction * test: fix Android e2e install on fresh emulators and rerun infrastructure flakes - Install the APK without reinstall on Android: adb uninstall of a missing package fails on API 34, so every test failed on a fresh emulator - Rerun the failed tests once in a fresh pass, since the runner never retries infrastructure failures - Fix ambiguous and nested locators in threads, button-kit and message-markdown-click - Re-tap the rooms list search button until its input appears * test: hide Android ANR dialogs and verify thread draft clear by placeholder - The launcher on a cold-booted CI emulator can raise an ANR dialog that blocks every tap; hide_error_dialogs suppresses it - Android reports the placeholder as the cleared composer's text, so clear() fails its own verification; assert the placeholder instead * test: reboot an Android emulator stuck on launcher focus before e2e runs - A launcher ANR on the cold-booted CI emulator leaves window focus stuck on the launcher; agent-device then rejects every tap as escaping the app. Hiding ANR dialogs only changed the symptom, so drop it - Before the run, open Settings and require it to hold window focus with no ANR dialog; otherwise reboot the emulator and check again - Find the empty thread composer by its textbox name on both platforms; Android exposes no placeholder node * test: retry deep link open when the simulator rejects it * test: retry deep link open only when the simulator rejects it * test: retry fills the iOS runner could not confirm * test: retry every fill the iOS runner could not confirm * test: fill the room password instead of typing into it on iOS * test: keep dismissing Chrome prompts until the SAML login page shows * ci: refresh a stale cached Android emulator with retries * test: clear the field before retrying an unconfirmed fill * test: follow the SAML login into Safari on iOS * test: retry a clear the iOS runner saw refilled * test: retry the Safari switch when simctl times out * ci: give the e2e rerun pass one attempt and room for the longest test * test: type the SAML credentials and clear Safari's bar before tapping SAML on iOS * test: accept an existing IdP session and the duplicate Open button in the SAML flow * test: retry rejected deep links until the URL scheme registers and settle every clear * chore: bump e2e runner to 0.18.0 and @e2e-dev/mobile to 0.10.0 * chore: pin Node 22.22.3, the floor the e2e runner needs * ci: poll the emulator focus check and log what holds focus when it fails * ci: cache only the agent-device runner build, never its daemon state * test: re-record the workspace agent step for the upgraded runner * test: retry the alert confirm tap until the alert closes * ci: run the agent step live to check the Claude token (temporary) * Revert "ci: run the agent step live to check the Claude token (temporary)" This reverts commit 6c0de66. * fix(composer): stop writing typed text back into the input * fix(room): catch up on messages sent while the room subscription was starting * test: wait out e2e races in alerts, sheets, deep links and back navigation * Revert "fix(room): catch up on messages sent while the room subscription was starting" This reverts commit 81fdfd4. * fix(profile): keep the new email in the form after saving it * test(e2e): verify the profile email and password change instead of skipping on rate limit * test(e2e): wait out the profile rate limit and retype the current password on retry * test(e2e): close the E2E password screen when the banner shifts the room row under the tap * ci(e2e): run the shard again when the device or runner fails before any test * ci(e2e): keep the iOS simulator screen recording, app log and crash reports when a shard fails * fix(action-sheet): show a sheet requested while the previous one is still dismissing * ci(e2e): keep the agent-device daemon and iOS runner logs of each pass when a shard fails * test(e2e): retry dropped taps on the drawer, alerts, room rows and delete actions so flaky steps pass on the first attempt * test(e2e): keep in-app notifications on screen long enough for a slow runner tap * ci(e2e): capture Android logcat and keep device evidence when a test needed a retry * test(e2e): accept the composer value without the trailing space iOS accessibility sometimes drops after an autocomplete * test(e2e): wait for the server to report the new profile email instead of reading it once * test(e2e): wait for the rooms list to connect before tapping search so the tap does not open a shifting row * test(e2e): close the Safari first-run tip that covers the SAML login page * test(e2e): give engine startup three minutes so a cold iOS runner does not fail the first test * ci(e2e): stop Android logcat with SIGTERM so the shard does not hang after the tests * test(e2e): wait for the last-owner alert to close before tapping Next on leave team * test(e2e): reopen the room after joining so the join message comes from history, not the starting stream * test(e2e): close the channel-name keyboard by tapping a hint, since agent-device refuses taps on the keyboard's own Done key * test(e2e): resend a device command the iOS runner refused while busy, since a refused command never ran * ci(e2e): collect iOS crash reports written after the capture started * test(e2e): let a slow iOS runner relaunch finish instead of forcing a rebuild loop * test(e2e): launch the iOS app before the login deep link so a slow cold start does not fail openLink * test(e2e): take an Android snapshot again while the foreground app is still too empty to read * test(e2e): type the text key by key when two fills could not confirm it * ci(e2e): wait for the Google Play services module restart before Android tests so it does not kill the app * test(e2e): tap Send again when the composer still holds the text, and wait for a connected rooms list after deep-link login * test(e2e): retry iOS fills whose text entry could not be verified, and keep dismissing the Save Password sheet until it is gone * test(e2e): wait for the app to finish launching after accepting the iOS open-link alert * test(e2e): report the creator's server room key state when a new encrypted room never shows the composer * test(e2e): read the iOS keyboard frame with a snapshot so a keyboard closing mid-scroll does not fail the gesture * test(e2e): tap the servers list button and Register again when the first tap does not respond * test(e2e): wait longer for the CAS page and match the Safari first-run tip by its title * ci(e2e): warm up the iOS simulator with one app launch before the first test * ci(e2e): save Android ANR traces with the failed shard evidence * test(e2e): retry API requests that never reached the server * test(e2e): retype searches that list nothing, wait for rooms before scrolling the list, and scroll again while history loads * ci(e2e): skip the snapshot save when the keyboard emulator shuts down * test(e2e): close the CAS keyboard with its toolbar button before tapping Sign in * test(e2e): open a just-joined room from the rooms list once it arrives instead of searching for it * test(e2e): stop timed-out attempts at their next step, clear a leftover iOS open-link prompt, and do not resend a link that arrived late * fix(encryption): mark the room ready before discarding it after accepting a suggested key or creating a new one * fix(deep-link): stop waiting when the token sign-in fails, and tell the user when it does not finish in time * ci(e2e): keep SpringBoard, testmanagerd, runningboardd and runner logs for failed or retried iOS shards * fix(messages): keep the attachments, urls and markdown the server returns for a sent message * test(e2e): close the CAS keyboard after each field so it does not cover the next one * test(e2e): tap the alert button only while its alert shows, and finish the deep link login on a room or the change password screen * test(e2e): tap a display preference row again when the first tap does not change it * test(e2e): give a slow simulator 60 seconds to answer the agent-device readiness check * fix(android): turn off GWP-ASan so a crash reporter fork during a sampled free cannot deadlock the app * test(e2e): wait for a thread jump to land instead of swiping away from it on Android * test(e2e): wait for the link alert to close before the next gesture on the message * test(e2e): split the deep link test at its reinstall points so each part has room under its timeout * test(e2e): give the ignore user test the default timeout for a cold first test * ci(e2e): include the agent-device patch in the iOS runner cache key * fix(e2e): shell-quote account env values and strip module lines in the script * ci(e2e): upload plain-text logs, scrub auth tokens, and fail closed on unredactable output * ci(e2e): stop failing the Android share shard on a fixture push error * fix(room): release the anchored window safely when a pending jump is aborted * ci(e2e): read shard tags from the e2e runner listing and fail on untagged tests * test(e2e): wait for the starred messages list to load before asserting an unstarred message is gone * test(e2e): wait for the rooms list and confirm server-side before asserting the deleted team is gone * fix(deep-link): send the token login only after the server connects so a slow sign-in still lands * fix(e2e): stop re-tapping one-shot submits once the tap registers * ci(e2e): end every e2e pass before the step timeout and keep the first pass's result when a retry runs out of time * fix(action-sheet): stop the sheet getting stuck when hidden before it finishes presenting * fix(messages): keep stream updates that land before the send reply * refactor(room): clear jump re-scrolls when a new jump starts * fix(e2e): stop retrying a busy-runner command once the test aborts * ci: reuse cached E2E native builds by fingerprint and swap only the JS bundle * action: organized translations * ci(e2e): hand replays recorded on CI back to the PR * test(e2e): drop the workspace agent recordings so CI records them again * test(e2e): add the workspace agent replays recorded on CI * ci(e2e): run 10 shards balanced by measured test time Five iOS shards run at once on the macOS runners, so 14 shards took three rounds. Ten balanced shards fit in two. The iOS test job also uses the runner's Node 22 instead of downloading the pinned patch on every shard. * test(e2e): reset the iOS app by clearing its state instead of reinstalling it Reinstalling took about 16s per test on CI. Clearing the keychain and the app's data gives the same clean start. The deep-link login closes the app first so the link cold-launches it, as on Android. * ci(e2e): pair iOS shards so they fit the 5 macOS runners in one wave * Revert "test(e2e): reset the iOS app by clearing its state instead of reinstalling it" This reverts commit 1782f28. * ci(e2e): add a switch to skip the screen recording and turn it off on iOS * ci(e2e): re-run the build after a missed pull_request event * ci(e2e): retry the iOS report upload once when it fails * chore(e2e): log room history loads and record iOS e2e video again * test(e2e): fail jump-to-message fast when Load newer does not load * test(e2e): split the room test so a retry reruns one flow, not all of them The single room test ran 8-13 minutes against a 15-minute limit, so a slow attempt timed out near the end and the in-runner retries plus the workflow rerun repeated the whole flow up to four times. Keep the first pass's report in the uploaded artifacts so the errors of retried attempts are not lost. * test(deep-link): connect the server before the token login in the accepted-call test * ci(e2e): group iOS shards by run time so no job passes 55 minutes * test(e2e): retry the room type switch and message action taps that did not register * ci: give up on a stalled pnpm cache restore after 4 minutes instead of 10 * test(e2e): scroll room history in small steps so jump-to-message cannot fling past a message * test(e2e): dismiss the Photos notifications prompt when it covers the app at launch * fix(e2e): bound recovery and preserve CI cache and device contracts * fix(e2e): skip the leftover iOS open-link prompt check before an app session exists * test(e2e): adapt suite to native Liquid Glass headers and retry covered taps * test(e2e): retry back taps covered by another element * test(e2e): retry closing the member search until the submit button returns * test(e2e): restore retries for unsettled clears and unconfirmed fills * test(e2e): lift room info fields above the iOS keyboard before typing * test(e2e): keep an unconfirmed fill that already holds its text * test(e2e): stabilize small iPhone toasts, team and thread jump checks * test(e2e): settle room info field clears before typing * test(e2e): reach poll modal header and vote buttons by label on iOS --------- Co-authored-by: diegolmello <diegolmello@users.noreply.github.com>
* refactor: memoize the avatar record lookup * refactor: size the section reveal from the toggled section * refactor: inline the animated room row wrapper * fix(ios): match native title presses inside the bar only Drops the unused large-title margin workaround and the patch hunks for source files the app never loads. * feat: reorder rooms list categories from display preferences * feat: press feedback and haptic on rooms list section headers * revert: size the section reveal from the toggled section Updating the cover and the collapsed groups in separate renders blanks the list for a frame when the last section collapses. * refactor: pass list button props explicitly * chore: drop stale todo on drawer navigator params * test: move row marker test beside its source * test(e2e): drop comments from back and header item helpers * test(e2e): pop to rooms list through the go back helper * test: reset the native header bar mock before each media call header test * refactor: name the list separator mode after its value * refactor: share the select list selection indicator * style: restore select list header action formatting * refactor: derive media call availability in the start call hook * refactor: share the unread count formatter * refactor: share the stacked search header options * refactor: build section fade animations from one factory * refactor: build the rooms list header title once * refactor: select the sidebar row from its selected flag alone * refactor: share the sidebar current screen hook * Revert "refactor: share the stacked search header options" This reverts commit 9e7aa34. * refactor: drop the unreachable self check from starting a media call * Revert "refactor: select the sidebar row from its selected flag alone" This reverts commit 5cf5d95. * refactor: sidebar consumers take the current screen as a string * Revert "test(e2e): pop to rooms list through the go back helper" This reverts commit f6fe212. * refactor: unread badge caps its count with the shared formatter * feat: create a category from the new message menu * feat: manage a category from its rooms list screen * feat: move a room to a category from room actions * feat: move a room to a category from the rooms list swipe menu * fix: match web rules for unread rooms in categories * feat: unread options for system categories and admin sections order * refactor: render iOS settings lists with React Native rows instead of the SwiftUI List * feat: switch categories from section pills in the category view * fix: match unread badge size to Figma * refactor: use React Native section pills on iOS * fix: keep section pills height when the rooms list is long * feat: theme the native header with the navigation bar colors * action: organized translations * fix: keep newer category updates when an older save fails * fix: reuse the category id when retrying category creation * fix: favorite the room before clearing its category * perf: keep room rows stable when opening and leaving a room The press handler closed over subscribedRoom, so every navigation to or from a room gave all rows a new onPress and re-rendered the whole list (151ms commit on return with ~80 rows). Read the subscribed room at press time and only subscribe to it in master-detail, where it drives focus. * fix: match native list section spacing to the pixel * fix: keep custom categories regardless of the Categories display option * fix: keep list item press handler off its content view * perf: memoize the rooms list renderItem wrapper FlatList only memoizes its internal renderItem wrapper with strictMode, so every subscription update (a new message in any room) handed every mounted cell a new renderItem and re-rendered all ~85 cells. With strictMode only the cells whose item changed re-render (655 -> 88 components per update). renderItem is already compiler-memoized on the values it closes over. strictMode ships in the strict API types but is missing from the legacy react-native types, so it is added through module augmentation. * perf: keep section headers stable when no thread is unread sectionHeader built new empty tunread/tunreadUser/tunreadGroup arrays on every list rebuild, so each subscription update changed the props of every SectionHeader and re-rendered them all. A shared empty array keeps idle headers memoized (88 -> 77 components per update). * feat: darker iOS black theme with neutral grays * feat: translucent native headers with the iOS scroll edge effect * test: keep real navigation context in accessibility view mock * perf: let the React Compiler optimize the forward message and category order rows * fix: show pressed feedback on unselected section pills * fix: match the section collapse chevron color to the header * perf: format message accessibility times with a shared formatter * perf: clip offscreen message rows on Android * perf: spring only on-screen rows when a rooms list section toggles * fix: arm the rooms list section fade before the toggle commit mounts * perf: keep the logged user object when a user update changes nothing * perf: give room message flags their loaded values before the subscription arrives * perf: skip the connection status subscription for rooms without a peer user * perf: keep user settings across a same-user reconnect login * perf: subscribe messages only to the logged user fields they read * perf: keep the logged user object when a reconnect login changes nothing * perf: ignore the room translation language while auto-translate is off * fix(ios): let the back swipe win over room item swipe at the screen edge * feat: open and close the drawer by swipe without racing room item swipe * feat: haptic when collapsing and expanding a rooms list category * feat: rename the unread group by option to Unread * feat: show read rooms in grey with a regular weight title * feat: match the category view section pills to the chip design * feat: show empty custom categories and bold only headers hiding unread rooms * feat: show empty categories with a collapsed chevron * feat: show only threads and a kebab in the room header * feat: open the call sheet on a single tap from the room header * refactor: consolidate native header and list forks from review - Pick native vs JS room header actions only in headerRightActions - Route the native-or-row picker choice through one List.Picker - Drive native list row selection from a selected prop, not testIDs - Skip the tablet header on the native header path - Define the forward message send handler inside its header effect - Move co-located tests into __tests__ * feat: scope create new to the category it was opened from * action: organized translations * feat: move category icons into the icon font * refactor: render native list accessories from their leaf components Switch, Radio and the chevron/new-window icons pick their native look inside the component via useIsNativeList, instead of the list mapping accessories by element type. Sections are explicit List.Section wrappers instead of a WeakSet marker. * fix: hide custom categories when the Categories display option is off * refactor: render the tablet rooms list header from its stack * refactor: keep the floating action button in one file * refactor: share list item accessibility label and press handling * refactor: share room header subtitle pieces between native and JS headers * refactor: render language and default browser lists with one List tree * refactor: build rooms list search bar from the shared options * refactor: share the checked state accessibility label * refactor: name header item props and new message chats by intent * refactor: clear the system search bar from the shared search header * refactor: type list picker selection by its option values * fix: keep discussions listed after cancelling search * fix: keep the first discussion below the iOS 26 header * test: close the iOS search bar before tapping Next on select users * test: check iOS media auto-download options in the native menu * test: toggle avatars from the row on iOS display preferences * test: drive iOS user preferences through native header and menus * fix: announce the connected server on the iOS sidebar profile * test: clear the iOS system search bar with its clear button * test: combine member status and text filters in the iOS order * fix: keep room members listed when picking the current status filter * fix: keep room members listed when the search text does not change * test: close the iOS search bar after clearing it * test: reach room actions rows and mute state on the iOS native list * fix: keep team channels listed and tappable below the iOS 26 header * test: drive the iOS team flow through native header items and menus * test: wait out the follow toast and check the thread composer when leaving iOS threads * test: match message markdown text anywhere in the row label * fix: restore the Android black theme overrides * fix: keep the encryption action visible in the iOS 26 room header * fix: keep test id and danger tint on room header menu items * fix: show the connection state first in the room header subtitle * fix: keep cannot connect out of the iOS 26 rooms list header * refactor: share the native header content inset across list views * refactor: render sidebar sections as a component * refactor: find the tablet focus navigator by id * refactor: share count badge metrics between header and unread badges * test: share the menu dismissal and assert the rooms list after popping * fix: block swipe-dismiss on the Apps Engine modal so cancel always fires * fix: toast the disabled reason when tapping a disabled native list row * chore: drop duplicate SceneDelegate entries from the iOS project * fix: skip size lookup for SVG Omnichannel app icons in the native room header * refactor: delete unused header button components * chore: stop autolinking @expo/ui on Android * test: wait inside tap-header-item and scope the iOS room title assertion to the header * chore: dedupe image source conversion and drop format-only hunks in the screens patch * refactor: share one icon image cache between header bar items and the room header * fix(android): drop the drawer's status bar inset from tablet Settings * fix(ios): apply native list spacing on every iOS version, not only iOS 26 * fix(ios): round avatars on every iOS version, not only iOS 26 * refactor: keep hasNativeHeaderBar as the only iOS 26 switch * fix: enable custom categories on 8.9+ servers with a valid enterprise license Server 8.9.0 unlocks custom sidebar categories for any valid enterprise license instead of the experimental-enterprise-features module, so the module check hid them from most licensed workspaces. Gate on licenses.info hasValidLicense and server 8.9.0, which also keeps older servers without the category endpoints out. The license flag is persisted per server so the gate holds on cold start. * fix(ios): fire native list toggles once per tap Rows with an onPress no longer pass touches to their trailing content, so a SwiftUI toggle inside a pressable row no longer fires alongside the row. * fix(ios): keep the discard-changes guard when swiping the avatar sheet away usePreventRemove also blocks the native form sheet dismissal on iPad, which a beforeRemove listener cannot stop. * fix(ios): keep search results when the native search bar is refocused Only the first focus starts a search; refocusing while searching no longer resets the results while the typed text stays. * fix(ios): preload native header icons on every app start Cold starts from a video-call push skipped appInit, so header icons stayed missing for the whole session. Preload once at boot, before any startup path. * fix(ios): reopen the date sheet when re-picking a custom clear-after date * fix(a11y): label the room notifications action by its destination * fix(a11y): read the row title before its disabled reason * fix(a11y): keep the room body focus anchor keyboard-only and hidden from VoiceOver * fix(a11y): make the iOS 26 header title a native button * fix(tablet): close Display preferences opened as a modal root * fix(ios): cap native header badge counts at +99 * fix(ios): keep the rooms list title empty until the server name loads * fix(ios): clear stale attributed header title and subtitle on iOS 26 * fix(android): drop the doubled top padding on notification list screens * fix: keep push troubleshoot status dots at full opacity in section headers * fix: watch section unread counts only while a section is collapsed * refactor: render the room item leading swipe action once * refactor: split rooms by unread state in one pass * refactor: define dynamic sidebar group ids once * refactor: reuse the category error alert when creating a category * refactor: let the create buttons render their own icon again * refactor: share the selected room chips between the confirm screens * refactor: pick the new message search handler at the call site * refactor: observe category rooms without the redundant column watch * refactor: share the native list row height with the category order view * refactor: let native list items reuse the row's disabled-reason handling * refactor: derive the room members header from the status filter state * refactor: build rooms list header actions once in the shared header state hook * refactor: collapse the sidebar admin check and drop the unused stack item route * refactor: drop dead header button variants and the drawer button's unused props * refactor: let the native room header take its colors from the themed stack header * refactor: require rid in room header actions and drop the unreachable no-rid mode * refactor: read section collapse state from the rooms list instead of stamping it on header rows * refactor: use the tint surface directly where the list background hook returned it unchanged * refactor: use List.Icon for the native create and member action rows * test: drop the removed header icon saga from sniffler globals and refresh directory item snapshots * test: drop removed saga from the test map and refresh directory item snapshots * revert: restore contained modal presentation on iOS Native page and form sheets keep root-mounted overlays (screen lock, passcode, 2FA) from presenting. Reverts a94e0f1 and c99d961. * refactor: render directory with FlatList and drop flash-list * fix(ios): hide the rooms list search while the workspace is blocked * fix(ios): show the pull-to-refresh spinner on the rooms list * fix: keep the back button when a JS header has no actions * fix: stop the rooms list search when the server changes * fix: fill the screen with the unsupported workspace version notice * fix(ios): keep the members filter reachable while searching * fix: skip the section cover animation when not toggling - Return an empty entering animation from coverEntering unless a section toggle is in progress * fix: watch room unread state while grouping rooms * fix: keep unknown sidebar groups when saving categories * fix: ignore category saves that finish after a server switch * fix: keep direct mentions of muted rooms on collapsed section badges * fix: start a section cover from rest once the previous cover is hidden * fix: finish category creation when adding its rooms fails The category is already saved when rooms.setCategory runs, so a failure there left the user on the confirm screen with a half-created category whose name was then rejected as a duplicate. Keep the created category, tell the user its rooms were not added, and close the flow. * fix: reserve the omnichannel on hold section label for category names The rooms list labels the on hold section with the On_hold_Livechats header, but the reserved names translated the On_Hold_Chats group id, which has no label, so a category could take the section's name. * fix: keep category order rows mounted when the order changes * fix: drag one category at a time and save the order on release * fix: clear a category's rooms before deleting the category * fix: check category names against the current categories * fix: alert when a category order save fails * fix: undo the favorite when a room fails to leave its category * fix: keep the section pills where the user scrolled them * fix: read the room's current category while the move sheet is open * fix: offer moving a room to a category from the accessible room actions * fix: keep category draft edits when going back in the create flow Each create-category screen kept its own copy of the name and rooms seeded from route params, so going back dropped rooms picked on the next screen and resurrected chips removed on confirm. Hold the draft in a store seeded by the entry points and shared by the three screens. * fix: stop the category order list from scrolling while a row is dragged * fix: find any user and file the new direct message into the open category * Revert "fix: stop the category order list from scrolling while a row is dragged" This reverts commit f300c57. * fix: move a room to favorites with only the favorite call The server clears a room's category when it is favorited, matching the web client. The extra category reset and its undo could strand a room with no category. * fix: run the action sheet onClose after the dismissal commits A sheet opened from onClose was presented before TrueSheet unmounted the dismissed content, leaving it empty. * fix: align header title and subtitle to the bar layout on iOS 26 * fix: match sidebar section spacing to native list on iOS * fix: turn on Categories display when a room lands in a custom category * fix: take user settings from the login result instead of the previous user * chore: drop CategoryOrderView from SettingsStack params * refactor: share the authenticated POST between setRoomsCategory and mediaConfirm * chore: translate custom categories strings * fix: run header menu items after the menu sheet dismisses * fix: open new rooms without waiting for the category assignment * fix: mirror the category header chevron in RTL * fix: roll failed category saves back to the last accepted state * fix: leave a category when it is deleted from another screen or device * fix: share the room selection between manage and confirm category rooms * fix: announce the notifications badge in the room more menu label * fix(tablet): keep the detail pane focused when the sidebar pushes a screen * fix: send server custom headers on authenticated REST posts * fix: keep small count badges as wide as they are tall * fix(tablet): let hardware back leave screens pushed on the sidebar * fix: order sidebar sections by the user's own preference * fix: roll failed category saves back within the session that made them * fix: add Basic Auth to authenticated REST posts through fetchForWorkspace * chore(ios): normalize quoting in Xcode project settings - Quote $TARGET_BUILD_DIR and $PODS_CONFIGURATION_BUILD_DIR path entries - Rewrite OTHER_LDFLAGS as a list, the way Xcode serializes it * fix: convert private channels to teams on servers that reject extra params * test: retry the room info tap when a scroll swallows it --------- Co-authored-by: diegolmello <diegolmello@users.noreply.github.com>
* feat: invite many users in one channels.invite request * chore: use roomTypeToApiType for the invite endpoint * test: merge per-type addUsersToRoom cases with it.each * test: remove addUsersToRoom rejection test that only covers promise propagation * fix: keep groups.invite on REST from 8.6.0 * test: pin addUsersToRoom gates at 8.5.9 and 9.0.0-rc.1 * test: remove the 9.0.0-rc.1 addUsersToRoom row
* ci: run independent setup steps in parallel * fix: e2e flows broken by the iOS 26 design and private team conversion * fix: e2e flows for markdown links, photos sheet, reaction picker and keyboard focus * fix: e2e flows for small-screen reactions, uikit button and keyboard focus stops * fix: e2e text patterns and keyboard path to the alerts row * fix: e2e uikit reply check on iOS and wait for writable emulator storage * chore: drop e2e and app fixes out of the parallel steps scope * ci: key the gradle cache after node setup and boot the simulator in one step * ci: gate the Android store upload on a successful build and set up JDK and SDK in parallel
…7823) * fix: send client certificate through expo/fetch on iOS and Android * fix(android): reset TLS sessions and pool when certificate alias changes * fix(ios): forward non-certificate challenges to Expo and send intermediates only * refactor: load client certificate identity once per alias and keep VoIP ping * fix(ios): skip websocket client certificate when the p12 has no identity * fix(android): load KeyChain identity outside the class lock to avoid a main-thread deadlock * fix(android): retry the KeyChain lookup when a previous one failed * fix(android): share one HTTP cache across OkHttp clients * fix: wait for the certificate swap before reaching the server * refactor(android): build the SSL context once and drop per-alias client rewiring * refactor(ios): drop unreachable server-trust branches from the client certificate loader * fix(android): keep expo-file-system's 60s timeouts on the certificate client * fix(ios): set the SDWebImage client credential on the main queue * fix(ios): keep the imported identity alive until the credential is built * fix(android): give the VoIP answer request its own dispatcher * refactor(android): use RN's shared OkHttp client and drop the placeholder key manager * refactor(ios): require an identity when filtering intermediate certificates * fix(android): drop the HTTP cache from OkHttp clients so images don't fill it * fix(ios): send image client certificates per host from SDWebImage's challenge handler * refactor(ios): load the websocket client certificate through Challenge * fix(android): close busy TLS sockets when the certificate alias changes * Revert "fix(android): close busy TLS sockets when the certificate alias changes" This reverts commit bf280eb. * refactor(android): serialize alias updates under one lock * refactor(ios): drop the unused MMKV import and Challenge class extension * fix(android): reload the KeyChain identity on every setCertificate to pick up renewals * fix(android): bound the VoIP DDP handshake with read and write timeouts * fix(android): choose the client certificate by host during the TLS handshake * fix(android): send the client certificate from notification fetch and reply * fix(android): give notification fetch and reply their own dispatcher * fix(android): resolve WebView certificates by host, log KeyChain failures and widen the pool * fix(android): register every server's certificate on startup * fix(android): keep websockets off the file-transfer queue and reset WebView certificate choices * refactor(android): drop the no-op notification dispatcher and the WebView resolver forwarders * refactor: share the server certificate lookup between startup and server selection * perf(ios): cache the client certificate credential instead of importing the p12 per connection * fix(android): keep HTTP/2 connections per host and build the TLS context on first use * refactor(android): take per-feature OkHttp clients from createClient * fix(android): resolve the certificate host from the connection on Android 7-8 * test: drop the unused sslPinning default from the selectServer mocks * refactor(android): resolve the certificate host only from the connection * refactor(android): share one hostname verifier and tighten the setup comments * refactor: reuse applyServerCertificate when autocompleting a certificate * refactor: read the certificate without applying it while autocompleting * code improvements * fix(ios): swizzle the Expo session proxy from an ObjC host instead of a category +load * fix: remove the client certificate when a workspace is removed * fix(android): keep the VoIP websocket open while the server is silent * fix: keep other workspaces' certificates when removing one * cleanup * fix(android): bound the VoIP websocket upgrade with a call timeout * fix: restore the certificates of every workspace on a removed host * fix: decide certificate removal from the workspaces left on the host * cleanup * fix: clear the host certificate when its last workspace goes and keep files logged out workspaces use * cleanup * fix(android): let the VoIP websocket fall back to the next server address * fix: clear a certificate removed by hand and keep it while its workspace is still listed * cleanup * fix(android): restore the VoIP websocket's 10s read timeout so a stalled handshake falls back * fix: keep showing the certificate when removing it fails * cleanup * fix(android): register certificates before restoring the workspace * cleanup * fix: re-apply the connected workspace certificate when it is selected again * fix: register the last active workspace's certificate last at startup and log apply failures * cleanup * fix(android): leave the host certificate alone when removing one that was never saved * cleanup * fix(android): survive KeyChain bind failures during a TLS handshake * fix(ios): clear the host entry before re-applying the remaining certificates * cleanup * fix: keep the host certificate when removing a workspace without one and harden Android alias persistence * fix(ios): clear the Watch certificate copy and the host entry on removal, and order re-applies by the selected workspace * cleanup * cleanup: apply one certificate per host and drop OkHttp's internal hostname verifier * more cleanups * cleanup: rename pickHostCertificates to pickCertificateServerPerHost
…to the Workspace (#7860) * fix: keep the share extension open when the app is already connected to the Workspace * fix: leave the share loading root when the share unlock is canceled * test(e2e): cover sharing to iOS app while it is already running - Add an iOS e2e test that logs in, shares a photo from the share sheet, and checks that the "Send to..." share list opens * refactor: share the share-root check between login and select server * test: restore the Workspace through the init saga after a canceled share unlock
…end long messages (#7859) * fix: restore keyboard from emoji picker after visiting a thread * fix: reset emoji toolbar when the system keyboard replaces the picker Opening the emoji picker dismisses the keyboard with keepFocus, so the composer input stays focused. Tapping it brings the system keyboard back without firing onFocus, and nothing reset the picker state, leaving the toolbar on the "Back to keyboard" icon. Close the picker whenever a system keyboard starts showing, unless the emoji search bar owns it. * fix: keep the emoji picker open when going back from emoji search * fix: composer shrinks back after sending a multi-line message * fix: composer shows app-set text after the user erased it and returns to the keyboard without delay * chore: inline closeEmojiSearchbar into resetKeyboard * fix: emoji picker keeps its height after going back from emoji search * fix: cleared composer text does not come back after a theme or text size change * fix: composer input issue * cleanup * fix: composer grows with typed text before the first send * fix: emoji search opened from the fixed-height picker stays above the keyboard * fix: Android back closes the emoji picker instead of leaving the room * fix: emoji tapped while the keyboard is still opening no longer leaves it up with the emoji toolbar * fix: hardware keyboard toolbar no longer collapses the fixed-height emoji picker * fix: iOS 27 iPad shortcut bar no longer closes the emoji picker as soon as it opens * fix: fixed-height emoji picker comes back at its height after emoji search * fix: Android back on a screen above the room no longer closes the room's emoji picker * cleanup * cleanup * fix: emoji tapped while the keyboard is still opening also dismisses it on iOS * cleanup * fix: late keyboard dismiss leaves the emoji search keyboard up * cleanup * code improvements * fix: composer shrinks back after sending a multi-line message on Android * cleanup * chore: reuse allowGrowingFromEmptyText when clearing the composer * cleanup * cleanup * test: keep hook order stable in emoji picker height tests * test: keep unfocused mock for every composer render in back button test --------- Co-authored-by: Diego Mello <diegolmello@gmail.com>
) * fix: share to end-to-end encrypted rooms from the share extension Encrypted rooms were hidden from the share list. They now show up, and rooms that can't be shared to yet are disabled with the reason. Sending waits for the room key, and encryptFile no longer uploads a plaintext file into an encrypted room when the key is missing. * fix: mark encrypted uploads failed and keep in-room ShareView send synchronous * fix: announce why a share list row is disabled * fix: settle waiting room handshakes when no room key is available A handshake that ended without a key left concurrent callers awaiting a readyPromise that never settled, which kept the share extension loading overlay up forever. canSendToRoom also treats a missing subscription as not sendable. * chore(i18n): translate encrypted room share list hints - Add Share_encrypted_room_key_missing and Share_encrypted_room_password_required to 24 locales * fix: block encrypted room shares until E2EE is ready - Treat unloaded E2E_Enable settings as enabled, so files are not uploaded unencrypted - Hide encrypted rooms from the share list on servers older than 6.10 - Show "waiting for keys" instead of the password prompt while encryption starts - Include the disabled reason in the DirectoryItem accessibility label - Reject waiting room handshakes without an error
Contributor
|
Important Review skippedToo many files! This PR contains 1059 files, which is 759 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 300 files.
|
OtavioStasiak
had a problem deploying
to
approve_e2e_testing
November 3, 2026 15:47 — with
GitHub Actions
Failure
OtavioStasiak
marked this pull request as ready for review
November 3, 2026 15:47
OtavioStasiak
had a problem deploying
to
ios_build
November 3, 2026 15:51 — with
GitHub Actions
Failure
OtavioStasiak
had a problem deploying
to
android_build
November 3, 2026 15:51 — with
GitHub Actions
Failure
Rohit3523
approved these changes
Nov 3, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Release 4.78.0. Merge develop into master at commit 75c8855.
75c8855 is the develop commit this branch was cut from. It's the first parent of the merge commit, and origin/develop still points to it.
Issue(s)
https://rocketchat.atlassian.net/browse/NATIVE-1811
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments