Skip to content

fix(3387): Pass channel ID to name mappings to mobile, use channel names in notifications - #3396

Merged
islathehut merged 9 commits into
9.0.0from
fix/3387-notifications-mobile-channel-names
Aug 4, 2026
Merged

fix(3387): Pass channel ID to name mappings to mobile, use channel names in notifications#3396
islathehut merged 9 commits into
9.0.0from
fix/3387-notifications-mobile-channel-names

Conversation

@islathehut

@islathehut islathehut commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Checklist

  • I have linked this PR to a related GitHub issue.
  • I have added a description of the change (and Github issue number, if any) to the root CHANGELOG.md.

(Optional) Mobile checklist

Please ensure you completed the following checks if you did any changes to the mobile package:

  • I have run e2e tests for mobile
  • I have updated base screenshots for visual regression tests

@islathehut islathehut linked an issue Jul 30, 2026 that may be closed by this pull request
@islathehut
islathehut marked this pull request as ready for review July 30, 2026 13:26
@islathehut islathehut changed the title fix(3387): Pass channel ID to name mappings to mobile, use channel names in notifications WIP: fix(3387): Pass channel ID to name mappings to mobile, use channel names in notifications Jul 30, 2026
@islathehut islathehut changed the title WIP: fix(3387): Pass channel ID to name mappings to mobile, use channel names in notifications fix(3387): Pass channel ID to name mappings to mobile, use channel names in notifications Jul 30, 2026
@islathehut
islathehut requested a review from adrastaea August 3, 2026 18:08
channelId
} else {
channelId.substringBefore('_')
var channelName = jsonMessage.get("channelName") as? String?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
var channelName = jsonMessage.get("channelName") as? String?
val channelName = jsonMessage.optString("channelName", channelId)

Use optstring because passing null to JSONObject.put() in QssFirebaseMessagingService omits the property causing jsonMessage.get("channelName") to throw.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done


static func addChannelMetadata(teamId: String, channelId: String, channelName: String) throws {
let keyName = KeychainService.generateChannelMetadataKeyName(teamId: teamId, channelId: channelId)
try upsertString(account: keyName, value: channelName, service: lfaKeyService)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We also need to add try deleteAll(matchingPrefix: channelMetadataKeyPrefix, service: lfaKeyService) to clearAllQuietData to clean these up when leaving community

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

@islathehut
islathehut merged commit e113e54 into 9.0.0 Aug 4, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong information in notifications on mobile

2 participants