Check each thread for unread messages. (#9723)

Co-authored-by: Germain <germain@souquet.com>
Co-authored-by: Janne Mareike Koschinski <jannemk@element.io>
This commit is contained in:
Patrick Cloke 2022-12-12 09:34:05 -05:00 committed by GitHub
parent dec72c7683
commit 9de5654353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 316 additions and 104 deletions

View file

@ -126,7 +126,7 @@ export const mkThread = ({
const thread = room.createThread(rootEvent.getId(), rootEvent, events, true);
// So that we do not have to mock the thread loading
thread.initialEventsFetched = true;
thread.addEvents(events, true);
thread.addEvents(events, false);
return { thread, rootEvent, events };
};