Skip to content

[core] fix(webjs): resolve lid for chat lookups#1882

Open
yanmcs wants to merge 1 commit intodevlikeapro:corefrom
yanmcs:fix/webjs-no-lid-error
Open

[core] fix(webjs): resolve lid for chat lookups#1882
yanmcs wants to merge 1 commit intodevlikeapro:corefrom
yanmcs:fix/webjs-no-lid-error

Conversation

@yanmcs
Copy link

@yanmcs yanmcs commented Feb 2, 2026

Why

WEBJS can throw “No LID for user” when resolving chats for contacts that exist
by JID but lack an internal LID mapping, causing 500s on message fetch.

What

  • Resolve LID before WEBJS chat lookups (using browser-side LidUtils)
  • Apply the LID resolver across WEBJS chat operations, not just message fetch
  • Return [] when LID can’t be resolved to avoid 500s

Notes

This keeps behavior aligned with GOWS for unseen contacts and prevents crashes.

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.

1 participant