fix message

This commit is contained in:
Peter Maquiran
2024-09-02 16:22:28 +01:00
parent 167df65628
commit 2b940c0b1b
3 changed files with 42 additions and 24 deletions
+5 -1
View File
@@ -102,7 +102,11 @@ export class MessageEntity {
}
static haveSeen(info: typeof MessageEntitySchema._type.info) {
return info.filter(e => typeof e.readAt != 'string' && e.memberId == SessionStore.user.UserId).length == 1
return info.filter(e => typeof e.readAt == 'string' && e.memberId == SessionStore.user.UserId).length == 1
}
meSender() {
return this.sender.wxUserId == SessionStore.user.UserId
}
}