Page MenuHomePhabricator

[keyserver] Fix "added username and username" issue when adding user
ClosedPublic

Authored by ashoat on Feb 5 2023, 7:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 11:10 AM
Unknown Object (File)
Sun, Apr 28, 11:10 AM
Unknown Object (File)
Sun, Apr 28, 11:07 AM
Unknown Object (File)
Sun, Apr 28, 10:50 AM
Unknown Object (File)
Mar 28 2024, 7:10 PM
Unknown Object (File)
Mar 28 2024, 7:10 PM
Unknown Object (File)
Mar 28 2024, 7:09 PM
Unknown Object (File)
Mar 28 2024, 7:05 PM
Subscribers

Details

Summary

I noticed that sometimes when I added somebody to a chat, their name would be printed twice in the robotext and the notif.

I investigated and found that it was because we're determining addedMemberIDs incorrectly in this code, as we're including any rows in the changeset for any threads. It's possible for adding somebody to a thread to cause their membership row to change for another thread, eg. a subthread they are already in.

To avoid this we could also check intent, but I figured checking threadID was more appropriate.

Test Plan

Confirmed that the "added username and username" probably went away in both robotext and notifs

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable