mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
send attachment to mobile and take picture
This commit is contained in:
@@ -14,8 +14,6 @@ export class ListenMessageDeleteByRoomIdService {
|
||||
execute({roomId}) {
|
||||
return this.messageLiveSignalRDataSourceService.getMessageDelete().pipe(
|
||||
filter((message) => {
|
||||
|
||||
console.log({message}, 'delete')
|
||||
return roomId == message?.roomId
|
||||
} )
|
||||
)
|
||||
|
||||
@@ -30,7 +30,6 @@ export class MessageAttachmentByMessageIdUseCase {
|
||||
|
||||
if(getLocalAttachment.isOk() && getLocalAttachment.value) {
|
||||
if(getLocalAttachment.value) {
|
||||
console.log('found local', getLocalAttachment.value)
|
||||
return getLocalAttachment.map(e => e.file)
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -19,7 +19,9 @@ export class SyncAllRoomMessagesService {
|
||||
const allRooms: RoomTable[] = await this.RoomRepositoryService.getRoomList()
|
||||
|
||||
if(allRooms) {
|
||||
console.log('allRooms', allRooms)
|
||||
if(allRooms.length == 0) {
|
||||
console.log('no room to sync')
|
||||
}
|
||||
for(const room of allRooms) {
|
||||
this.MessageRepositoryService.listAllMessagesByRoomId(room.id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user