Mobile add picture publiation and chat

This commit is contained in:
Eudes Inácio
2022-02-03 16:36:05 +01:00
parent 8e0fad9c99
commit 99b33375b8
7 changed files with 81 additions and 33 deletions
@@ -118,6 +118,9 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
this.getChatMembers();
this.getRoomMessageDB(this.roomId);
this.wsChatMethodsService.getUserOfRoom(this.roomId).then((value) => {
console.log('MEMBER', value)
})
}
setStatus(status:string){
+6 -3
View File
@@ -123,9 +123,12 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
ngOnInit() {
//this.load();
this.setStatus('online');
this.wsChatMethodsService.getUserOfRoom(this.roomId).then((value) => {
console.log('MEMBER', value)
})
//this.loadFiles();
VoiceRecorder.requestAudioRecordingPermission();
this.getChatMembers();
Filesystem.mkdir({
path: IMAGE_DIR,
directory: Directory.Data,
@@ -541,8 +544,8 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
//this.loadPicture();
}
else if (res['data'] == 'add-picture') {
this.fileService.addPictureToChatMobile(roomId);
//this.loadPicture();
//this.fileService.addPictureToChat(roomId);
this.fileService.loadPicture(this.roomId);
}
else if (res['data'] == 'add-document') {
this.fileService.addDocumentToChat(this.roomId);