@ -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();
if (!blockList || !blockList.length) {
return false;