mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix direct room
This commit is contained in:
@@ -47,6 +47,10 @@ export class RoomLocalRepository extends DexieRepository<RoomTable, RoomTable> i
|
||||
(modifications as Partial<RoomTable>).local = IDBoolean.true
|
||||
}
|
||||
|
||||
if((modifications as Partial<RoomTable>).id && !oldValue.id && oldValue.roomType == RoomType.Direct) {
|
||||
return this.listenCreateSyncSubject.next({...oldValue, ...modifications})
|
||||
}
|
||||
|
||||
return modifications
|
||||
});
|
||||
|
||||
@@ -60,5 +64,10 @@ export class RoomLocalRepository extends DexieRepository<RoomTable, RoomTable> i
|
||||
return from(liveQuery(() => chatDatabase.room.get(id)));
|
||||
}
|
||||
|
||||
|
||||
OnSetIdToDirectRoom() {
|
||||
return this.listenCreateSyncSubject.asObservable()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user