This commit is contained in:
Peter Maquiran
2022-09-23 11:34:38 +01:00
5 changed files with 698 additions and 315 deletions
@@ -18,6 +18,6 @@
}
},
"server": {
"url": "http://192.168.1.6:8101"
"url": "http://192.168.0.37:8101"
}
}
+692 -311
View File
File diff suppressed because it is too large Load Diff
@@ -42,6 +42,7 @@ import { File } from '@awesome-cordova-plugins/file/ngx';
import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx';
import { Filesystem, Directory } from '@capacitor/filesystem';
const IMAGE_DIR = 'stored-images';
@Component({
@@ -1019,6 +1020,8 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
this.downloadFileFromBrowser("file", str)
this.downloadFileFromBrowser(msg.attachments[0].name, str)
this.downloadFileFromBrowser(msg.attachments[0].name, str)
}
} else {
@@ -1120,6 +1120,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log(msg)
if (msg.file.type == "application/img") {
const modal = await this.modalController.create({
component: ViewMediaPage,
@@ -165,10 +165,8 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
}
async ngOnInit() {
ngOnInit() {
this.wsChatMethodsService.getAllRooms();
this.chatService.refreshtoken();
this.scrollToBottom();
this.getChatMembers();