mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
reflect to mobile
This commit is contained in:
@@ -62,21 +62,26 @@ export class RoomEntity extends BaseEntity<RoomEntity>(RoomEntitySchema) implem
|
||||
super();
|
||||
Object.assign(this, data)
|
||||
|
||||
if(data.roomType == RoomType.Direct) {
|
||||
this.setName()
|
||||
try {
|
||||
if(data.roomType == RoomType.Direct) {
|
||||
this.setName()
|
||||
|
||||
if(this.members.length == 2) {
|
||||
if(!this.$id ) {
|
||||
this.$id = this.getReceiverId()
|
||||
if(this.members.length == 2) {
|
||||
if(!this.$id ) {
|
||||
this.$id = this.getReceiverId()
|
||||
}
|
||||
|
||||
if(!this.receiverId ) {
|
||||
this.setReceiver()
|
||||
}
|
||||
}
|
||||
|
||||
if(!this.receiverId ) {
|
||||
this.setReceiver()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
} catch (e) {
|
||||
console.error('eee', e, this)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// direct room only
|
||||
|
||||
Reference in New Issue
Block a user