mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix bold
This commit is contained in:
@@ -20,21 +20,20 @@ export class MessageLocalDataSourceService extends DexieRepository<MessageTable,
|
||||
super(chatDatabase.message, MessageTableSchema)
|
||||
|
||||
this.setAllSenderToFalse();
|
||||
this.onCreatingHook()
|
||||
}
|
||||
|
||||
private onCreatingHook() {
|
||||
chatDatabase.message.hook('creating', (primaryKey, obj, transaction) => {
|
||||
console.log('A new friend is being added:', obj);
|
||||
|
||||
this.creatingSubject.next(obj)
|
||||
console.log('creating', obj)
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// onCreateObservable() {
|
||||
// return this.creatingSubject.asObservable().pipe(
|
||||
// filter(e => e?.sender?.wxFullName)
|
||||
// )
|
||||
// }
|
||||
onCreateObservable() {
|
||||
return this.creatingSubject.asObservable()
|
||||
}
|
||||
|
||||
async setAllSenderToFalse() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user