1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Include thread replies in message previews (#10631)

* Include thread replies to message previews

* Extend tests

* Fix type issue

* Use currentColor for thread icon

* Fix long room name overflow

* Update snapshots

* Fix preview

* Fix typing issue

* Fix type issues

* Tweak thread reply detection

* Extend tests

* Fix type issue

* Fix test
This commit is contained in:
Michael Weimann
2023-06-01 09:53:48 +02:00
committed by GitHub
parent 6be09eec09
commit b5727cb463
11 changed files with 717 additions and 189 deletions

View File

@ -135,6 +135,11 @@ export const mkThread = ({
}
const thread = room.createThread(rootEvent.getId()!, rootEvent, events, true);
events.forEach((event) => {
thread.timeline.push(event);
});
// So that we do not have to mock the thread loading
thread.initialEventsFetched = true;