Skip to content

feat: add SetGroupMessageReactionReq message for group reaction handling#11

Merged
Redmomn merged 1 commit intomasterfrom
reaction
Mar 23, 2026
Merged

feat: add SetGroupMessageReactionReq message for group reaction handling#11
Redmomn merged 1 commit intomasterfrom
reaction

Conversation

@Redmomn
Copy link
Copy Markdown
Collaborator

@Redmomn Redmomn commented Mar 23, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 23, 2026 15:32
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 23, 2026

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed⏩ skippedMar 23, 2026, 3:33 PM

@Redmomn Redmomn enabled auto-merge (squash) March 23, 2026 15:33
@Redmomn Redmomn merged commit 33599e9 into master Mar 23, 2026
5 checks passed
@Redmomn Redmomn deleted the reaction branch March 23, 2026 15:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new protobuf types under service.v2 intended to support group message reaction handling in the OIDB schema.

Changes:

  • Added GenericEmptyRspBody as a reusable empty response body message.
  • Added SetGroupMessageReactionReq message for group reaction requests.
  • Removed the previously-defined DED3RspBody message (currently appears replaced by the new reaction request message).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -404,4 +406,9 @@ message DED3ReqBody {
optional uint32 nudge_type = 6;
}

Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DED3RspBody appears to have been removed and replaced by SetGroupMessageReactionReq. Removing an existing message from a published proto is a breaking change for downstream code generation/compatibility. If DED3RspBody is still a valid response type, re-add it (optionally mark as deprecated) and add the new reaction request message separately.

Suggested change
message DED3RspBody {
option deprecated = true;
}

Copilot uses AI. Check for mistakes.
}

message DED3RspBody {}
message SetGroupMessageReactionReq {
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetGroupMessageReactionReq starts field numbering at tag 2, leaving tag 1 unaccounted for. If tag 1 exists in the upstream schema but is intentionally omitted here, add reserved 1; (or define the missing field) to prevent accidental reuse and to make the wire layout explicit.

Suggested change
message SetGroupMessageReactionReq {
message SetGroupMessageReactionReq {
reserved 1;

Copilot uses AI. Check for mistakes.
Comment on lines +409 to +414
message SetGroupMessageReactionReq {
optional int64 group_uin = 2;
optional uint32 sequence = 3;
optional string code = 4;
optional uint32 type = 5; // 1 face 2 emoji
}
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In proto/service/v2/oidb.proto, request/response messages consistently use the *ReqBody / *RspBody suffix pattern (e.g., D102AReqBody, DeleteFileReqBody). SetGroupMessageReactionReq is the only request message in this file that doesn't follow that convention; consider renaming to SetGroupMessageReactionReqBody (and adding a matching *RspBody type if applicable) to keep generated APIs consistent for consumers.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants