mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
set last message
This commit is contained in:
@@ -13,6 +13,20 @@ export class RoomLocalRepository extends DexieRepository<RoomTable, RoomTable> i
|
||||
|
||||
constructor() {
|
||||
super(chatDatabase.room, RoomTableSchema)
|
||||
// chatDatabase.room.hook('creating', (primaryKey, obj, transaction) => {
|
||||
// if(obj.messages?.[0].attachments?.[0]) {
|
||||
// delete obj.messages[0].attachments[0].file
|
||||
// }
|
||||
// });
|
||||
|
||||
// chatDatabase.room.hook('updating', (modifications, primKey, obj, transaction) => {
|
||||
|
||||
// if((modifications as Partial<RoomTable>).messages?.[0].attachments?.[0]) {
|
||||
// delete (modifications as Partial<RoomTable>).messages[0].attachments[0].file
|
||||
// }
|
||||
|
||||
// return modifications
|
||||
// });
|
||||
}
|
||||
|
||||
getItemsLive() {
|
||||
|
||||
Reference in New Issue
Block a user