mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix bold
This commit is contained in:
@@ -85,7 +85,7 @@ export class RoomEntity extends BaseEntity<RoomEntity>(RoomEntitySchema) implem
|
||||
if(receiver) {
|
||||
return receiver.user.wxUserId.toString()
|
||||
} else {
|
||||
Logger.error('cant get receiver Id from Room.getReceiverId '+ this.id, this)
|
||||
// Logger.error('cant get receiver Id from Room.getReceiverId '+ this.id, this)
|
||||
return undefined
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ export class RoomEntity extends BaseEntity<RoomEntity>(RoomEntitySchema) implem
|
||||
if(receiverId) {
|
||||
this.receiverId = parseInt(receiverId)
|
||||
} else {
|
||||
Logger.error('cant set receiver Id from Room.setReceiver', this)
|
||||
// Logger.error('cant set receiver Id from Room.setReceiver', this)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -109,6 +109,11 @@ export class MessageEntity {
|
||||
return info.filter(e => typeof e.readAt == 'string' && e.memberId == SessionStore.user.UserId).length == 1
|
||||
}
|
||||
|
||||
haveSeen() {
|
||||
return this.info.filter(e => typeof e.readAt == 'string' && e.memberId == SessionStore.user.UserId).length == 1
|
||||
}
|
||||
|
||||
|
||||
meSender() {
|
||||
return this.sender?.wxUserId == SessionStore.user.UserId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user