Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2345 - Broken username in the in-app notification after the user has been kicked out #2346

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

SebinSong
Copy link
Collaborator

closes #2345

@SebinSong SebinSong self-assigned this Sep 13, 2024
const possibleMentions = [
...Object.keys(ourContactProfilesById).map(u => makeMentionFromUserID(u).me).filter(v => !!v),
...Object.keys(reverseNamespaceLookups).map(u => makeMentionFromUserID(u).me).filter(v => !!v),
Copy link
Collaborator Author

@SebinSong SebinSong Sep 13, 2024

Choose a reason for hiding this comment

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

I actually don't know the exact context that this reverseNamespaceLookups field was created for but apparently this field contains user-ids for both current members and members who have been kicked out. (as opposed to ourContractProfilesById only having current members of the group) So making an update here.

Copy link
Member

Choose a reason for hiding this comment

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

@SebinSong this was introduced in this PR: #2294

Nice job realizing it would be useful for this issue!

Copy link

cypress bot commented Sep 13, 2024

group-income    Run #3088

Run Properties:  status check passed Passed #3088  •  git commit 1864311a40 ℹ️: Merge ab4fec58fa067edee3eb134a62f752fd241efa35 into ca27856c8c3eacc8c24f72a00995...
Project group-income
Branch Review sebin/task/#2345-username-bug-in-notification
Run status status check passed Passed #3088
Run duration 09m 25s
Commit git commit 1864311a40 ℹ️: Merge ab4fec58fa067edee3eb134a62f752fd241efa35 into ca27856c8c3eacc8c24f72a00995...
Committer Sebin Song
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 10
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 111
View all changes introduced in this branch ↗︎

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

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

Approved!

@taoeffect taoeffect merged commit e341e65 into master Sep 13, 2024
4 checks passed
@taoeffect taoeffect deleted the sebin/task/#2345-username-bug-in-notification branch September 13, 2024 19:22
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.

Username of a removed member looks wrong in the in-app notifications.
2 participants