fix: Group invites are sent in beeper chat requests when join automatically is turned off#166
fix: Group invites are sent in beeper chat requests when join automatically is turned off#166highesttt wants to merge 2 commits into
Conversation
…ically is turned off
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR adds message request support for LINE pending group invitations. The bridge detects when a user is invited to a group chat but not yet a member, creates it as a message request portal, and provides handlers to accept or reject the invitation. E2EE group key registration now includes the bridge user's own key to satisfy server requirements. ChangesMessage Request Support for LINE Group Invitations
🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/connector/sync.go`:
- Around line 1285-1294: The code incorrectly defaults selfInvited to true when
opType == OpInviteIntoChat causing inviters to be treated as self-invites;
change the logic in handleInvite so selfInvited starts false (selfInvited :=
false) and only set to true when the chat's GroupExtra.InviteeMids contains
lc.Mid (i.e., keep the existing check on chat.Extra.GroupExtra.InviteeMids)
before calling lc.handleInviteForSelfFromChat — ensure opType ==
OpInviteIntoChat is not used as the default indicator of a self-invite.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 861ae545-b025-4abf-93ee-74d2506ec28e
📒 Files selected for processing (6)
pkg/connector/creategroup.gopkg/connector/send_message.gopkg/connector/sync.gopkg/connector/userinfo.gopkg/e2ee/manager.gopkg/line/methods.go
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build-docker
- GitHub Check: build-docker
🧰 Additional context used
📓 Path-based instructions (2)
**/*.go
📄 CodeRabbit inference engine (AGENTS.md)
**/*.go: Usego fmtfor code formatting across all Go files
Usegoimportswith-local "github.com/highesttt/matrix-line-messenger"flag to group project-local imports correctly
Usezerologfor logging throughout the codebase
Do not useMsgfin logging; useMsgwith structured fields instead
UseStringerinterface where applicable in Go code
Files:
pkg/connector/creategroup.gopkg/connector/userinfo.gopkg/line/methods.gopkg/e2ee/manager.gopkg/connector/send_message.gopkg/connector/sync.go
**/!(ltsm)/**/*.go
📄 CodeRabbit inference engine (AGENTS.md)
**/!(ltsm)/**/*.go: Runstaticcheckon all Go files excludingpkg/ltsmpackage (transpiled WASM code)
Rungo veton all Go files excludingpkg/ltsmpackage (transpiled WASM code)
Files:
pkg/connector/creategroup.gopkg/connector/userinfo.gopkg/line/methods.gopkg/e2ee/manager.gopkg/connector/send_message.gopkg/connector/sync.go
🔇 Additional comments (6)
pkg/line/methods.go (1)
761-780: LGTM!pkg/e2ee/manager.go (1)
70-79: LGTM!pkg/connector/creategroup.go (1)
243-257: LGTM!pkg/connector/sync.go (1)
214-223: LGTM!Also applies to: 244-257, 339-355, 1327-1328, 1330-1355, 1384-1396
pkg/connector/send_message.go (1)
830-837: LGTM!Also applies to: 849-858
pkg/connector/userinfo.go (1)
54-59: LGTM!
Fizzadar
left a comment
There was a problem hiding this comment.
Looks reasonable, please check the indent comments though @highesttt I'm not familiar with the code so may well have missed those notes.
…& fixed some comments
No description provided.