1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Don't consider threads for breaking continuation until actually created (#8581)

* Don't consider threads for breaking continuation until they've actually been created

* Update tests

* Make hasThreadSummary null thread safe

* Apply feedback from pr review
This commit is contained in:
Michael Telatynski
2022-05-13 12:59:50 +01:00
committed by GitHub
parent fbbb9c27ba
commit 59b9d1e818
3 changed files with 15 additions and 2 deletions

View File

@ -280,3 +280,7 @@ export function canForward(event: MatrixEvent): boolean {
M_POLL_START.matches(event.getType())
);
}
export function hasThreadSummary(event: MatrixEvent): boolean {
return event.isThreadRoot && event.getThread()?.length && !!event.getThread().replyToEvent;
}