Skip to content

Commit

Permalink
Update packages/client/src/MessagePickupRepositoryClient.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ariel Gentile <[email protected]>
  • Loading branch information
gabrielmatau79 and genaris authored Nov 13, 2024
1 parent 328f952 commit 1c227d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client/src/MessagePickupRepositoryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ export class MessagePickupRepositoryClient implements MessagePickupRepository {
const client = this.checkClient()

// Retrieve connection information using the callback, if set
const connectionInfoCallback = this.setConnectionInfoCallback
? await this.setConnectionInfoCallback(params.connectionId)
const connectionInfo = this.connectionInfoCallback
? await this.connectionInfoCallback(params.connectionId)
: undefined

// Set the token and max bytes from the connection info, if available
params.token = connectionInfoCallback?.fcmNotificationToken
params.token = connectionInfo?.fcmNotificationToken

// Call the 'addMessage' RPC method on the WebSocket server
const result: unknown = await client.call('addMessage', params, 2000)
Expand Down

0 comments on commit 1c227d3

Please sign in to comment.