create weakly event

This commit is contained in:
Peter Maquiran
2024-10-22 14:31:04 +01:00
parent ac1f01b15b
commit 54fb4f57d7
29 changed files with 447 additions and 225 deletions
@@ -55,5 +55,7 @@ export class EventSetDefaultParticipantsService {
}
}
return ok(null)
}
}
@@ -102,10 +102,10 @@ export class RoomSetLastMessageService {
} else {
console.log('set last message')
}
} else if (findRoom.isOk() && !findRoom.value && e.payload.receiverId) {
} else if (findRoom.isOk() && !findRoom.value && e.payload?.receiverId) {
// console.log('new room', e)
const findLocalDirectRoom = await this.roomLocalRepository.findOne({
receiverId: e.payload.receiverId
receiverId: e.payload?.receiverId
})
if(findLocalDirectRoom.isOk() && findLocalDirectRoom.value) {