reflect to mobile

This commit is contained in:
Peter Maquiran
2024-09-18 19:02:45 +01:00
parent a4d81a68e6
commit 6dac5733a6
9 changed files with 499 additions and 674 deletions
+15 -10
View File
@@ -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