mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
Mobile add picture publiation and chat
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user