Apply strictNullChecks
to src/utils/*!exportUtils
(#10455
* Apply `strictNullChecks` to `src/utils/exportUtils` * strict fix * fix strictNullChecks issues in some utils * fix error message * test coverage * lint * more strictNullChecks * small optimisation for getUniqueRoomsWithIndividuals * tidy * test coverage
This commit is contained in:
parent
4ed6e39067
commit
81a4498a8f
18 changed files with 143 additions and 81 deletions
|
@ -65,6 +65,9 @@ export const lookupThreePids = async (
|
|||
if (threePids.length === 0) return [];
|
||||
|
||||
const token = await client.identityServer.getAccessToken();
|
||||
|
||||
if (!token) return [];
|
||||
|
||||
const lookedUp = await client.bulkLookupThreePids(
|
||||
threePids.map((t) => [t.isEmail ? "email" : "msisdn", t.userId]),
|
||||
token,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue