add thread in api and front

This commit is contained in:
grimhilt
2023-04-05 17:28:58 +02:00
parent 51003b494b
commit 97768e3695
8 changed files with 58 additions and 28 deletions

View File

@@ -145,6 +145,8 @@ export default class RegisterMessageInApp {
await this.incrementNotSeen(roomId);
if (isThread) {
await getThreadInfoOnId(roomId).then(async (res) => {
let root_id = res[0].root_id;
if (root_id == undefined) root_id = res[0].room_id;
await this.incrementNotSeen(res[0].root_id);
});
}