This commit is contained in:
Peter Maquiran
2024-09-02 15:27:07 +01:00
parent 1b9b4600ab
commit 167df65628
12 changed files with 91 additions and 36 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { z } from "zod";
import { base64Schema } from "src/app/utils/zod";
import { SessionStore } from "src/app/store/session.service";
export enum MessageAttachmentSource {
@@ -101,7 +102,7 @@ export class MessageEntity {
}
static haveSeen(info: typeof MessageEntitySchema._type.info) {
return info.filter(e => typeof e.readAt != 'string')
return info.filter(e => typeof e.readAt != 'string' && e.memberId == SessionStore.user.UserId).length == 1
}
}