Skip to content

Commit

Permalink
fix up the tests and make sure they all pass
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Dec 8, 2023
1 parent c25bd23 commit 8242b1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ios/Wrappers/ConsentWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import XMTP
struct ConsentWrapper {
static func encodeToObj(_ entry: XMTP.ConsentListEntry) throws -> [String: Any] {
return [
"type": entry.entryType,
"type": entry.entryType.rawValue,
"value": entry.value,
"state": consentStateToString(state: entry.consentType),
]
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EventEmitter, NativeModulesProxy } from 'expo-modules-core'
import { Client } from '.'
import { ConversationContext } from './XMTP.types'
import XMTPModule from './XMTPModule'
import { ConsentListEntry } from './lib/ConsentListEntry'
import { ConsentListEntry, ConsentState } from './lib/ConsentListEntry'
import {
DecryptedLocalAttachment,
EncryptedLocalAttachment,
Expand Down Expand Up @@ -321,7 +321,7 @@ export async function decodeMessage(
export async function conversationConsentState(
clientAddress: string,
conversationTopic: string
): Promise<'allowed' | 'denied' | 'unknown'> {
): Promise<ConsentState> {
return await XMTPModule.conversationConsentState(
clientAddress,
conversationTopic
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Contacts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Client } from './Client'
import * as XMTPModule from '../index'
import { ConsentListEntry } from './ConsentListEntry'
import * as XMTPModule from '../index'

export default class Contacts {
client: Client<any>
Expand Down

0 comments on commit 8242b1b

Please sign in to comment.