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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;