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

Add content type filtering to bindings #1436

Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions xmtp_content_types/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
pub mod group_updated;
pub mod membership_change;
pub mod reaction;
pub mod reply;
pub mod read_receipt;
pub mod remote_attachment;
pub mod text;
pub mod transaction_reference;

use thiserror::Error;
use xmtp_proto::xmtp::mls::message_contents::{ContentTypeId, EncodedContent};
Expand Down
6 changes: 6 additions & 0 deletions xmtp_content_types/src/reaction.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub struct ReactionCodec {}

impl ReactionCodec {
const AUTHORITY_ID: &'static str = "xmtp.org";
pub const TYPE_ID: &'static str = "reaction";
}
6 changes: 6 additions & 0 deletions xmtp_content_types/src/read_receipt.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub struct ReadReceiptCodec {}

impl ReadReceiptCodec {
const AUTHORITY_ID: &'static str = "xmtp.org";
pub const TYPE_ID: &'static str = "read_receipt";
}
6 changes: 6 additions & 0 deletions xmtp_content_types/src/remote_attachment.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub struct RemoteAttachmentCodec {}

impl RemoteAttachmentCodec {
const AUTHORITY_ID: &'static str = "xmtp.org";
pub const TYPE_ID: &'static str = "remote_attachment";
}
6 changes: 6 additions & 0 deletions xmtp_content_types/src/reply.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub struct ReplyCodec {}

impl ReplyCodec {
const AUTHORITY_ID: &'static str = "xmtp.org";
pub const TYPE_ID: &'static str = "reply";
}
6 changes: 6 additions & 0 deletions xmtp_content_types/src/transaction_reference.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub struct TransactionReferenceCodec {}

impl TransactionReferenceCodec {
const AUTHORITY_ID: &'static str = "xmtp.org";
pub const TYPE_ID: &'static str = "transaction_reference";
}
Loading