Add logging for debugging.

pull/2174/head
warrickct 3 years ago
parent ec3fabf0a1
commit f3cefdcf49

@ -223,8 +223,11 @@ window.getOpenGroupBlockList = () => {
.toString()
.split('\n');
// TODO: trim whitespace
console.warn({ blockList });
window.groupBlockList = blockList;
} catch (e) {
console.error({ e });
return [];
}
}

@ -52,6 +52,7 @@ export function parseOpenGroupV2(urlWithPubkey: string): OpenGroupV2Room | undef
*/
export const isGroupInBlockList = async (serverPubKey: string): Promise<boolean> => {
const blockList = window?.getOpenGroupBlockList();
console.warn({ blockList });
if (!blockList || !blockList.length) {
return false;
}

Loading…
Cancel
Save