Skip to content
Merged
Changes from 1 commit
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
22 changes: 22 additions & 0 deletions proto/mls/message_contents/content_types/delete_message.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// delete_message.proto
// This file defines the DeleteMessage message type and is associated with the following ContentTypeId:
//
// ContentTypeId {
// authority_id: "xmtp.org",
// type_id: "deleteMessage",
// version_major: 1,
// version_minor: 0,
// }
//
syntax = "proto3";

package xmtp.mls.message_contents.content_types;

option go_package = "github.com/xmtp/proto/v3/go/mls/message_contents/content_types";
option java_package = "org.xmtp.proto.mls.message_contents.content_types";

// DeleteMessage message type
message DeleteMessage {
// ID of the message to delete
string message_id = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

While I know that the platform SDKs typically treat message IDs as strings, we should think about whether we want to internally represent as bytes internally. One less encode/decode step and one less thing to validate (no possibility for encoding errors).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we have the message_id everywhere - kinda e.g. in the ReactionV2, as string, I wanted to be consistent, but will update it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, that's fair. We probably made a mistake initially having it as a string in the other content types. But I'm fine with erring on the side of consistency.

}
Loading