mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
duplicate roms bug fix
This commit is contained in:
@@ -143,8 +143,8 @@ export class ChatPage implements OnInit {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
console.log(this.wsChatMethodsService.dm);
|
console.log('Rooms INDIVIDUAIS',this.wsChatMethodsService._dm);
|
||||||
console.log(this.wsChatMethodsService.group);
|
console.log(' ROOMS GROUP',this.wsChatMethodsService._group);
|
||||||
|
|
||||||
|
|
||||||
this.segment = "Contactos";
|
this.segment = "Contactos";
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
<div *ngIf="msg.attachments" class="message-attachments">
|
<div *ngIf="msg.attachments" class="message-attachments">
|
||||||
<div *ngFor="let file of msg.attachments">
|
<div *ngFor="let file of msg.attachments">
|
||||||
<div *ngIf="msg.file.type == 'application/img'" (click)="openPreview(msg)">
|
<div *ngIf="msg.file.type == 'application/img'" (click)="openPreview(msg)">
|
||||||
<img *ngIf="msg.image_url" src="{{msg.image_url}}" alt="image" >
|
<img *ngIf="msg.file.image_url" src="{{msg.file.image_url}}" alt="image" >
|
||||||
<ion-icon *ngIf="msg.file.image_url == null" name="download-outline"></ion-icon>
|
<ion-icon *ngIf="msg.file.image_url == null" name="download-outline"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="msg.file.type != 'application/img'">
|
<div *ngIf="msg.file.type != 'application/img'">
|
||||||
|
|||||||
@@ -99,10 +99,10 @@ export class WsChatMethodsService {
|
|||||||
|
|
||||||
async getAllRooms () {
|
async getAllRooms () {
|
||||||
this.loadingWholeList = true
|
this.loadingWholeList = true
|
||||||
this.getRoomFromDb();
|
//this.getRoomFromDb();
|
||||||
const rooms = await this.WsChatService.getRooms();
|
const rooms = await this.WsChatService.getRooms();
|
||||||
|
await this.storage.remove('Rooms');
|
||||||
this.storage.set('Rooms', rooms);
|
await this.storage.set('Rooms', rooms);
|
||||||
|
|
||||||
// console.log("ROOMS" + JSON.stringify(rooms))
|
// console.log("ROOMS" + JSON.stringify(rooms))
|
||||||
this.WsChatService.registerCallback({
|
this.WsChatService.registerCallback({
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<div *ngIf="msg.attachments" class="message-attachments">
|
<div *ngIf="msg.attachments" class="message-attachments">
|
||||||
<div *ngFor="let file of msg.attachments">
|
<div *ngFor="let file of msg.attachments">
|
||||||
<div *ngIf="msg.file.type == 'application/img'" (click)="openPreview(msg)">
|
<div *ngIf="msg.file.type == 'application/img'" (click)="openPreview(msg)">
|
||||||
<img *ngIf="file.image_url" src="{{file.image_url}}" alt="image">
|
<img *ngIf="msg.file.image_url" src="{{msg.file.image_url}}" alt="image">
|
||||||
<ion-icon *ngIf="msg.file.image_url == null" name="download-outline"></ion-icon>
|
<ion-icon *ngIf="msg.file.image_url == null" name="download-outline"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="msg.file.type != 'application/img'">
|
<div *ngIf="msg.file.type != 'application/img'">
|
||||||
|
|||||||
Reference in New Issue
Block a user