mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
send attachment to mobile and take picture
This commit is contained in:
@@ -34,13 +34,12 @@ export class GroupContactsPage implements OnInit {
|
||||
|
||||
constructor(
|
||||
public ThemeService: ThemeService,
|
||||
// public ChatSystemService: ChatSystemService,
|
||||
private contactsRepositoryService: ContactRepositoryService,
|
||||
private RoomRepositoryService: RoomRepositoryService,
|
||||
private httpErrorHandle: HttpErrorHandle,
|
||||
private toastService: ToastService,
|
||||
)
|
||||
{}
|
||||
){}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.loadUsers()
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ import { FileType } from 'src/app/models/fileType';
|
||||
import { SearchPage } from 'src/app/pages/search/search.page';
|
||||
import { CameraResultType } from '@capacitor/camera';
|
||||
import { RecordingData } from 'capacitor-voice-recorder';
|
||||
import { Filesystem, Directory } from '@capacitor/filesystem';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
import { Platform } from '@ionic/angular';
|
||||
import { File } from '@awesome-cordova-plugins/file/ngx';
|
||||
@@ -221,11 +220,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
||||
id: message.attachments[0].id
|
||||
})
|
||||
|
||||
if(result.isOk() && message.attachments[0].fileType == MessageAttachmentFileType.Audio) {
|
||||
console.log('safe parse', result.value)
|
||||
message.attachments[0].safeFile = result.value;
|
||||
|
||||
} else if(result.isOk()){
|
||||
if(result.isOk()){
|
||||
message.attachments[0].safeFile = result.value
|
||||
}
|
||||
}
|
||||
@@ -261,11 +256,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
||||
id: message.attachments[0].id
|
||||
})
|
||||
|
||||
if(result.isOk() && message.attachments[0].fileType == MessageAttachmentFileType.Audio) {
|
||||
console.log('safe parse', result.value)
|
||||
message.attachments[0].safeFile = result.value;
|
||||
|
||||
} else if(result.isOk()){
|
||||
if(result.isOk()){
|
||||
message.attachments[0].safeFile = result.value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user