Skip to content

Resolve contact names by MID, including non-friends - #9

Merged
kongesque merged 6 commits into
mainfrom
feat/contact-mid-lookup
Sep 28, 2026
Merged

kongesque merged 6 commits into
mainfrom
feat/contact-mid-lookup

Conversation

@kongesque

Copy link
Copy Markdown
Owner

When a group member is not in the friend list, applications only have the sender MID and cannot show the person's name. line contacts --mid MID now looks up supplied user IDs directly through GetContactsV2, including multiple IDs in one command. It preserves input order, reports omitted profiles explicitly, and leaves the existing friend-list output unchanged.

The change also rejects malformed contact responses, documents lookup and partial-result behavior, and updates the CLI guide and translated READMEs.

Validation: go test -race ./internal/... ./cmd/line ./pkg/line/... ./pkg/e2ee, go vet ./internal/... ./cmd/line ./pkg/line ./pkg/e2ee ./pkg, staticcheck ./internal/... ./cmd/line ./pkg/line ./pkg/e2ee ./pkg, ./build.sh, and command help checks passed. Tests use fake APIs; no live LINE request was made.

Closes #8

@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Important

  • 馃攳 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

鈿欙笍 Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: d92ca9e2-dd01-4907-a999-4ac4654e1500


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

鉂わ笍 Share

Comment @coderabbitai help to get the list of available commands.

@kongesque
kongesque merged commit 35d45ae into main Sep 28, 2026
7 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.

Add command to resolve contact name from arbitrary MID

1 participant