Skip to content

Commit

Permalink
Remove MembershipChangeCodec, export GroupUpdatedCodec
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Jun 5, 2024
1 parent 9b97497 commit e35ed5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 48 deletions.
8 changes: 1 addition & 7 deletions packages/mls-client/src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
type EncodedContent,
} from '@xmtp/xmtp-js'
import { GroupUpdatedCodec } from '@/codecs/GroupUpdatedCodec'
import { MembershipChangeCodec } from '@/codecs/MembershipChangeCodec'
import { Conversations } from '@/Conversations'

export const ApiUrls = {
Expand Down Expand Up @@ -96,12 +95,7 @@ export class Client {
accountAddress,
options?.encryptionKey
),
[
new MembershipChangeCodec(),
new GroupUpdatedCodec(),
new TextCodec(),
...(options?.codecs ?? []),
]
[new GroupUpdatedCodec(), new TextCodec(), ...(options?.codecs ?? [])]
)
}

Expand Down
41 changes: 0 additions & 41 deletions packages/mls-client/src/codecs/MembershipChangeCodec.ts

This file was deleted.

4 changes: 4 additions & 0 deletions packages/mls-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ export { Client, ApiUrls } from './Client'
export { Conversation } from './Conversation'
export { Conversations } from './Conversations'
export { DecodedMessage } from './DecodedMessage'
export {
ContentTypeGroupUpdated,
GroupUpdatedCodec,
} from './codecs/GroupUpdatedCodec'

0 comments on commit e35ed5d

Please sign in to comment.