Rewrite the restricted iterators and reorder the forward references. [skip build]
This commit is contained in:
@@ -112,7 +112,8 @@ export function Permissions({ requestClose }: PermissionsProps) {
|
||||
const total = syncableChildren.length;
|
||||
const myUserId = mx.getSafeUserId();
|
||||
|
||||
for (const childId of syncableChildren) {
|
||||
for (let i = 0; i < syncableChildren.length; i += 1) {
|
||||
const childId = syncableChildren[i];
|
||||
try {
|
||||
const childRoom = mx.getRoom(childId);
|
||||
if (childRoom) {
|
||||
@@ -220,7 +221,8 @@ export function Permissions({ requestClose }: PermissionsProps) {
|
||||
const total = syncableChildren.length;
|
||||
const myUserId = mx.getSafeUserId();
|
||||
|
||||
for (const childId of syncableChildren) {
|
||||
for (let i = 0; i < syncableChildren.length; i += 1) {
|
||||
const childId = syncableChildren[i];
|
||||
try {
|
||||
const childRoom = mx.getRoom(childId);
|
||||
if (childRoom) {
|
||||
|
||||
Reference in New Issue
Block a user