Rewrite the restricted iterators and reorder the forward references. [skip build]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user