Skip to content

startchat: fix contact disappearing from search once a DM exists#288

Merged
Fizzadar merged 1 commit into
mainfrom
nick/fb-snc-existing
Jun 17, 2026
Merged

startchat: fix contact disappearing from search once a DM exists#288
Fizzadar merged 1 commit into
mainfrom
nick/fb-snc-existing

Conversation

@Fizzadar

Copy link
Copy Markdown
Member

Messenger DMs are created as ENCRYPTED_OVER_WA_ONE_TO_ONE (type 15), but SearchUsers only surfaced plain ONE_TO_ONE results, so a contact vanished from Start New Chat once a DM existed.

Relax the SearchUsers filter to accept all 1:1 thread types via IsOneToOne(). Make GetFBID() return OtherUserId when set, falling back to ResultId for any 1:1 thread type.

Messenger DMs are created as ENCRYPTED_OVER_WA_ONE_TO_ONE (type 15), but
SearchUsers only surfaced plain ONE_TO_ONE results, so a contact vanished
from Start New Chat once a DM existed.

Relax the SearchUsers filter to accept all 1:1 thread types via IsOneToOne().
Make GetFBID() return OtherUserId when set, falling back to ResultId for any 1:1 thread type.
@Fizzadar Fizzadar merged commit baf2aea into main Jun 17, 2026
11 checks passed
@Fizzadar Fizzadar deleted the nick/fb-snc-existing branch June 17, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants