Rewrite the restricted iterators and reorder the forward references. [skip build]
Checks / checks (push) Successful in 2m11s
Trigger cinny-mobile / dispatch (push) Successful in 2s

This commit is contained in:
2026-11-01 21:05:47 +11:00
parent 5477242661
commit 664b7eb739
25 changed files with 472 additions and 437 deletions
+4 -2
View File
@@ -149,13 +149,15 @@ export function ForumNewPostModal({
eventId = await sendForumMediaRoot(mx, topicRoomId, trimmedTitle, first);
publishedPlainText = typeof first.body === 'string' ? first.body : trimmedTitle;
publishedHtml = '';
for (const content of rest) {
for (let i = 0; i < rest.length; i += 1) {
const content = rest[i];
await sendForumThreadAttachment(mx, topicRoomId, eventId, content);
}
}
if (hasText) {
for (const content of attachmentContents) {
for (let i = 0; i < attachmentContents.length; i += 1) {
const content = attachmentContents[i];
await sendForumThreadAttachment(mx, topicRoomId, eventId, content);
}
}