({ username, domain })
| 423 | }; |
| 424 | |
| 425 | const linkBegin = async ({ username, domain }) => { |
| 426 | const data = { |
| 427 | targetUsername: username, |
| 428 | domain, |
| 429 | version: LINK_DEVICES_FILE_VERSION |
| 430 | }; |
| 431 | |
| 432 | const recipientId = getRecipientId({ recipientId: username, domain }); |
| 433 | const client = await createClient({ |
| 434 | recipientId, |
| 435 | optionalToken: '@' |
| 436 | }); |
| 437 | return await client.linkBegin(data); |
| 438 | }; |
| 439 | |
| 440 | const linkDeny = async params => { |
| 441 | const { randomId, recipientId } = params; |
nothing calls this directly
no test coverage detected