Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reaction codec libxmtp integration #232

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions proto/message_contents/content_types/reaction.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
syntax = "proto3";

package xmtp.reactions;

option go_package = "github.com/xmtp/proto/v3/go/reactions";
option java_package = "org.xmtp.proto.reactions";

// Action enum to represent reaction states
enum ReactionAction {
ACTION_UNSPECIFIED = 0;
ACTION_ADDED = 1;
ACTION_REMOVED = 2;
}

// Schema enum to represent reaction content types
enum ReactionSchema {
SCHEMA_UNSPECIFIED = 0;
SCHEMA_UNICODE = 1;
SCHEMA_SHORTCODE = 2;
SCHEMA_CUSTOM = 3;
}

// Reaction message type
message Reaction {
// The message ID being reacted to
string reference = 1;

// The inbox ID of the user who sent the message being reacted to
// Optional for group messages
string reference_inbox_id = 2;

// The action of the reaction (added or removed)
ReactionAction action = 3;

// The content of the reaction
string content = 4;

// The schema of the reaction content
ReactionSchema schema = 5;
}
Loading