1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

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
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 };
};