Skip to content

Commit 6d1265e

Browse files
committed
lint fix
1 parent b0f31a5 commit 6d1265e

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

example/src/tests/clientTests.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { ethers, Wallet } from 'ethers'
22
import RNFS from 'react-native-fs'
33
import { ArchiveOptions } from 'xmtp-react-native-sdk/lib/ArchiveOptions'
4-
import { InstallationId } from 'xmtp-react-native-sdk/lib/Client'
5-
import { XMTPEnvironment } from 'xmtp-react-native-sdk/lib/Client'
4+
import {
5+
InstallationId,
6+
XMTPEnvironment,
7+
} from 'xmtp-react-native-sdk/lib/Client'
8+
69
import {
710
Test,
811
assert,
@@ -293,7 +296,6 @@ test('can make a client', async () => {
293296
dbEncryptionKey: keyBytes,
294297
deviceSyncEnabled: false,
295298
appVersion: '0.0.0',
296-
gatewayUrl: 'https://xmtp3.org'
297299
})
298300

299301
const inboxId = await Client.getOrCreateInboxId(
@@ -308,7 +310,6 @@ test('can make a client', async () => {
308310
return true
309311
})
310312

311-
// https://payer.testnet-staging.xmtp.network:443
312313
test('can make a new client and build existing from existing db using d14n staging testnet', async () => {
313314
// eslint-disable-next-line @typescript-eslint/no-unused-vars
314315
const keyBytes = new Uint8Array([
@@ -326,15 +327,12 @@ test('can make a new client and build existing from existing db using d14n stagi
326327
dbDirectory: dbDirPath,
327328
deviceSyncEnabled: false,
328329
appVersion: '0.0.0',
329-
gatewayUrl: 'https://payer.testnet-staging.xmtp.network:443'
330+
gatewayUrl: 'https://payer.testnet-staging.xmtp.network:443',
330331
}
331-
332+
332333
const client = await Client.createRandom(options)
333334

334-
const inboxId = await Client.getOrCreateInboxId(
335-
client.publicIdentity,
336-
'dev'
337-
)
335+
const inboxId = await Client.getOrCreateInboxId(client.publicIdentity, 'dev')
338336

339337
assert(
340338
client.inboxId === inboxId,

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function createRandom(
139139
deviceSyncEnabled,
140140
debugEventsEnabled,
141141
appVersion,
142-
gatewayUrl
142+
gatewayUrl,
143143
}
144144
return await XMTPModule.createRandom(
145145
hasPreAuthenticateToInboxCallback,
@@ -172,7 +172,7 @@ export async function create(
172172
deviceSyncEnabled,
173173
debugEventsEnabled,
174174
appVersion,
175-
gatewayUrl
175+
gatewayUrl,
176176
}
177177
const signerParams: SignerParams = {
178178
signerType,

src/lib/XMTPPush.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export class XMTPPush {
1313
}
1414

1515
async subscribe(topics: ConversationTopic[]) {
16-
return await XMTPModule.subscribePushTopics(this.client.installationId, topics)
16+
return await XMTPModule.subscribePushTopics(
17+
this.client.installationId,
18+
topics
19+
)
1720
}
1821
}

0 commit comments

Comments
 (0)