Skip to content

line: support blocking and unblocking users - #267

Merged
highesttt merged 3 commits into
mainfrom
highest/plat-39269
Oct 14, 2026
Merged

highesttt merged 3 commits into
mainfrom
highest/plat-39269

Conversation

@highesttt

@highesttt highesttt commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

No description provided.

@linear-code

linear-code Bot commented Oct 14, 2026

Copy link
Copy Markdown

PLAT-39269

@indent

indent Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Issues

All clear! No issues remaining. 🎉

3 issues already resolved
  • If getBlockedRecommendationIds fails, refreshBlockedContacts returns an error and discards the successful blocked-contact result. Blocks and unblocks made on the phone while offline are then missed, and unblocked users stay marked blocked. Treat the recommendation call as best-effort. (fixed by commit 8f8814e)
    Found by Indent Review Agent
  • HandleMatrixBlockUser doesn't update lc.blockedUsers after a successful block or unblock and relies on the op echo. Until the echo arrives, sends right after an unblock from Beeper still fail with "user is blocked on LINE". Update the cache and snapshot after SetContactBlocked succeeds. (fixed by commit 9b971b7)
    Found by Indent Review Agent
  • A block op whose Param2 isn't exactly "RECOMMEND" removes the MID from the recommendation fallback list. If the recommendation refresh later fails, the user is treated as newly unblocked and sends are allowed. Only add on RECOMMEND and leave the snapshot alone otherwise. (fixed by commit 9b971b7)
    Found by Indent Review Agent

CI Checks

All CI checks passed on 9b971b7.

Review agents

Select any unchecked box below to run or rerun that agent.

Passed (1)
  • Indent Review Agent · The latest change fixes the fallback-list issue and adds no regressions; nothing left to report.
Full results

Indent Review Agent

  • Summary: The latest change fixes the fallback-list issue and adds no regressions; nothing left to report.
  • Last ran on commit: 9b971b70
  • Latest result
    {
      "summary": "The latest change fixes the fallback-list issue and adds no regressions; nothing left to report.",
      "findings": []
    }

Comment thread pkg/connector/sync.go
Comment thread pkg/connector/block_user.go
Comment thread pkg/connector/sync.go Outdated
@highesttt
highesttt merged commit 73fbc54 into main Oct 14, 2026
9 checks passed
@highesttt
highesttt deleted the highest/plat-39269 branch October 14, 2026 22:31
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.

1 participant