mattermost-mobile-upstream/ios
cursor[bot] 0869dc8eab
[MM-62038] Fix urgent mention badge colors (#10119)
* [MM-62038] Fix urgent mention badge colors

Persist urgent mention counts and use them to render channel list badges with the urgent color treatment.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Address CodeRabbit feedback on urgent mention count persistence

Skip unread updates when fetchMyChannel fails so persisted urgent
counts are not cleared, and preserve urgentMentionCount on partial
MyChannel transformer updates.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Use should... names for urgent mention transformer tests

CodeRabbit requested the parameterized transformMyChannelRecord cases
start with should, matching the repo test-name guideline.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Address PR feedback: 1 answered, 1 resolved, 0 declined

Persist urgent mention counts on the native killed-app push path
so in-app channel list badges stay urgent-colored after a cold start.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Persist computed is_unread on iOS MyChannel update path

CodeRabbit flagged isUnreadCol <- isUnreadCol, which is a no-op.
Write the computed isUnread value so native push updates store
recalculated unread state, matching the insert path and Android.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Address PR feedback: 2 answered, 1 resolved, 0 declined

Use the active theme's buttonColor for urgent mention badge text
instead of hardcoded Denim.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

* Address PR feedback: 1 answered, 1 resolved, 0 declined

Treat omitted urgent_mention_count as 0 in transformMyChannelRecord.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

---------

Co-authored-by: Matty Code <mattycode@mattycode-3.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-09-14 14:03:53 -04:00
..
ErrorReporting fix(MM-63460): HTTPClientError spam (#8693) 2025-03-20 11:15:05 -06:00
Fonts Barebones code for v2 2020-11-17 14:20:58 -03:00
Gekidou [MM-62038] Fix urgent mention badge colors (#10119) 2026-09-14 14:03:53 -04:00
Mattermost Bump app build number (#10145) 2026-09-11 12:20:03 +03:00
Mattermost.xcodeproj Bump app build number (#10145) 2026-09-11 12:20:03 +03:00
Mattermost.xcworkspace feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
MattermostShare Bump app build number (#10145) 2026-09-11 12:20:03 +03:00
MattermostTests Barebones code for v2 2020-11-17 14:20:58 -03:00
NotificationService Bump app build number (#10145) 2026-09-11 12:20:03 +03:00
SplashScreenResource Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
.xcode.env Gekidou upgrade RN to 0.69.3 and dependencies (#6537) 2022-08-08 09:06:20 -04:00
bundleReactNative.sh Multiple Fixes (#9767) 2026-05-19 16:35:20 +08:00
GekidouWrapper.swift fix: session attributes pod (#10080) 2026-08-20 15:00:53 +03:00
Podfile fix: session attributes pod (#10080) 2026-08-20 15:00:53 +03:00
Podfile.lock Guard long-running DB chains against RUNNINGBOARD 0xdead10cc on iOS (#10110) 2026-09-02 15:07:34 +08:00
Podfile.properties.json Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
PrivacyInfo.xcprivacy feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
uploadDebugSymbols.sh Added support for self-hosted Sentry (#7230) 2023-04-19 14:58:59 -04:00