diff --git a/src/app/pages/chat/group-messages/group-messages.page.ts b/src/app/pages/chat/group-messages/group-messages.page.ts index 54123c486..bd869ddab 100644 --- a/src/app/pages/chat/group-messages/group-messages.page.ts +++ b/src/app/pages/chat/group-messages/group-messages.page.ts @@ -144,7 +144,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy { this.wsChatMethodsService.getUserOfRoom(this.roomId).then((value) => { }) - VoiceRecorder.requestAudioRecordingPermission(); + //this.loadFiles(); } @@ -289,6 +289,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy { } async startRecording() { + VoiceRecorder.requestAudioRecordingPermission(); if(await VoiceRecorder.canDeviceVoiceRecord().then((result: GenericResponse) =>{return result.value})){ if(await VoiceRecorder.requestAudioRecordingPermission().then((result: GenericResponse) => {return result.value})){ //if(await this.hasAudioRecordingPermission()){ diff --git a/src/app/pages/chat/messages/messages.page.ts b/src/app/pages/chat/messages/messages.page.ts index 75797766c..0f8c1a5df 100644 --- a/src/app/pages/chat/messages/messages.page.ts +++ b/src/app/pages/chat/messages/messages.page.ts @@ -159,7 +159,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy { this.wsChatMethodsService.getUserOfRoom(this.roomId).then((value) => { }) - VoiceRecorder.requestAudioRecordingPermission(); + this.getChatMembers(); } @@ -222,6 +222,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy { } async startRecording() { + VoiceRecorder.requestAudioRecordingPermission(); if(await VoiceRecorder.canDeviceVoiceRecord().then((result: GenericResponse) =>{return result.value})){ if(await VoiceRecorder.requestAudioRecordingPermission().then((result: GenericResponse) => {return result.value})){ //if(await this.hasAudioRecordingPermission()){ diff --git a/src/app/shared/chat/group-messages/group-messages.page.ts b/src/app/shared/chat/group-messages/group-messages.page.ts index a7e6989bb..337d38c30 100644 --- a/src/app/shared/chat/group-messages/group-messages.page.ts +++ b/src/app/shared/chat/group-messages/group-messages.page.ts @@ -166,7 +166,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe }, 1000); this.getChatMembers(); //this.getMessageDB(); - VoiceRecorder.requestAudioRecordingPermission(); + this.deleteRecording(); this.loadFiles(); } @@ -298,6 +298,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe } async startRecording() { + VoiceRecorder.requestAudioRecordingPermission(); if(await VoiceRecorder.canDeviceVoiceRecord().then((result: GenericResponse) =>{return result.value})){ if(await VoiceRecorder.requestAudioRecordingPermission().then((result: GenericResponse) => {return result.value})){ //if(await this.hasAudioRecordingPermission()){ diff --git a/src/app/shared/chat/messages/messages.page.ts b/src/app/shared/chat/messages/messages.page.ts index 7efd240dc..a5ed538a2 100644 --- a/src/app/shared/chat/messages/messages.page.ts +++ b/src/app/shared/chat/messages/messages.page.ts @@ -157,7 +157,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy this.scrollToBottom(); this.getChatMembers(); - VoiceRecorder.requestAudioRecordingPermission(); + this.deleteRecording(); this.loadFiles(); } @@ -287,6 +287,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy } async startRecording() { + VoiceRecorder.requestAudioRecordingPermission(); if(await VoiceRecorder.canDeviceVoiceRecord().then((result: GenericResponse) =>{return result.value})){ if(await VoiceRecorder.requestAudioRecordingPermission().then((result: GenericResponse) => {return result.value})){ //if(await this.hasAudioRecordingPermission()){