mattermost-mobile-upstream/app
Mattermost Build 0c649d8667
Route through usePropsFromParams for remaining stragglers (#9949) (#9952)
Four route files were still consuming useLocalSearchParams directly,
bypassing the safeParseJSON decode that every other route already
uses via usePropsFromParams. Combined with propsToParams unconditionally
JSON.stringify'ing every prop (#9931), that means their string params
arrived with literal quote characters embedded (e.g. rootId "abc123"
-> `"abc123"`).

Impact:
- thread.tsx: rootId doesn't match any post in the DB, rootPost stays
  undefined, ThreadContent never renders. The user sees a blank thread
  screen with subtitle `in "channel name"` (visible quote characters).
- code.tsx: code param is rendered verbatim by the highlighter with
  outer quotes and escaped inner quotes/backslashes. The MM-69330
  workaround (bypassing the hook to preserve string type) is obsolete
  now that propsToParams always JSON-encodes: safeParseJSON('"42"')
  returns the string '42', not the number 42.
- about.tsx / settings_display_timezone_select.tsx: header text and
  timezone identifier arrive with extra quotes.

Migrating all four to usePropsFromParams closes the symmetry: every
param is JSON-encoded on send and JSON-decoded on receive.

Also updates code.test.tsx to feed the route JSON-encoded params, so
the MM-69330 regression coverage still exercises the exact scenario
seen in production.


(cherry picked from commit 9a40cad748)

Co-authored-by: Eva Sarafianou <eva.sarafianou@mattermost.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-20 08:55:51 +03:00
..
actions [MM-68315] Add autorecovery for database corruptions (#9900) 2026-07-13 18:02:35 +02:00
client MM-68208 Implementing global and channel-level banners on mobile (#9752) 2026-07-08 12:47:01 +03:00
components Add date/datetime field support with timezone features for Apps Forms (#9521) (#9933) 2026-07-17 08:04:27 +03:00
constants [MM-68856] Respect default agent and persist last-selected agent in agent selectors (#9829) (#9937) 2026-07-17 08:28:24 +03:00
context Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
database [MM-68315] Add autorecovery for database corruptions (#9900) 2026-07-13 18:02:35 +02:00
helpers Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
hooks [MM-69227] Fix back button behavior (#9927) 2026-07-13 17:43:09 +02:00
i18n Add autotranslations (#9324) 2026-02-10 17:50:39 +01:00
init [MM-69457] Stop logging PII in exportable app logs (#9884) 2026-07-02 12:19:04 +02:00
keyboard resumes slide animation after stopping due to modal system dialog showing (#9792) 2026-05-29 06:50:57 +08:00
managers [MM-68315] Add autorecovery for database corruptions (#9900) 2026-07-13 18:02:35 +02:00
products [MM-68856] Respect default agent and persist last-selected agent in agent selectors (#9829) (#9937) 2026-07-17 08:28:24 +03:00
queries [MM-68315] Add autorecovery for database corruptions (#9900) 2026-07-13 18:02:35 +02:00
routes Route through usePropsFromParams for remaining stragglers (#9949) (#9952) 2026-07-20 08:55:51 +03:00
screens Fix passing number strings through screen params (#9931) (#9936) 2026-07-17 08:10:16 +03:00
store Receive Mattermost Calls through iOS native incoming-call UI (#9780) 2026-06-16 12:08:14 -03:00
utils Fix passing number strings through screen params (#9931) (#9936) 2026-07-17 08:10:16 +03:00