Fix the small mechanical rules. [skip build]
Checks / checks (push) Successful in 2m12s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 10:28:59 +11:00
parent bb85cd9778
commit 73554ecf7f
45 changed files with 331 additions and 347 deletions
+7 -7
View File
@@ -385,19 +385,19 @@ function ForumThreadDetailBody({
// Local echo can land slightly after send; refresh once more.
window.setTimeout(() => {
void reloadThread().then(applyLoaded);
reloadThread().then(applyLoaded);
}, 400);
}, [onReplySent, reloadThread]);
const handleDeleted = useCallback(() => {
void handleComposerSent();
handleComposerSent();
}, [handleComposerSent]);
useForumRoomLiveUpdates(
[room],
() => {
setContentRevision((revision) => revision + 1);
void reloadThread();
reloadThread();
},
{ threadRootId: rootEventId, wait: 150 },
);
@@ -418,14 +418,14 @@ function ForumThreadDetailBody({
const eventId = rootEvent.getId();
if (!eventId) return;
mx.redactEvent(roomId, eventId).then(() => {
void handleComposerSent();
handleComposerSent();
});
}, [handleComposerSent, mx, rootEvent, roomId]);
const handleEditRootClose = useCallback(() => {
setEditEventId(undefined);
setContentRevision((revision) => revision + 1);
void handleComposerSent();
handleComposerSent();
}, [handleComposerSent]);
const toggleBranch = useCallback((branchKey: string) => {
@@ -585,7 +585,7 @@ function ForumThreadDetailBody({
editEventId={editEventId}
onEditEventId={setEditEventId}
onComposerSent={() => {
void handleComposerSent();
handleComposerSent();
}}
onDeleted={handleDeleted}
onReplyTo={handleReplyTo}
@@ -607,7 +607,7 @@ function ForumThreadDetailBody({
replyToEventId={replyToEventId}
fileDropContainerRef={dropRef}
onSent={() => {
void handleComposerSent();
handleComposerSent();
}}
/>
</div>