This commit is contained in:
tiago.kayaya
2022-02-09 11:34:21 +01:00
parent 1ea0cc47fe
commit 7be567d258
5 changed files with 10 additions and 12 deletions
+3 -3
View File
@@ -69,10 +69,10 @@
<div *ngIf="room.lastMessage" class="item-description" [class.item-description-active]="room.id == idSelected">
<ion-label *ngIf="room.lastMessage && room.otherUserType == false">{{room.lastMessage.msg}}</ion-label>
<ion-label *ngIf="room.otherUserType == true">A escrever ...</ion-label>
<ion-label *ngIf="room.lastMessage.file">
<ion-label *ngIf="room.otherUserType == true">A escrever...</ion-label>
<!-- <ion-label *ngIf="room.lastMessage.file">
<fa-icon *ngIf="room.lastMessage.file.type != 'application/meeting'" icon="file-alt" class="file-icon" [class.set-active-item-font-to-white]="room.id == idSelected"></fa-icon>
</ion-label>
</ion-label> -->
<div *ngIf="room.lastMessage.file">
<fa-icon *ngIf="room.lastMessage.file.type != 'application/meeting' && room.lastMessage.file.type != 'application/img'" icon="file-alt" class="file-icon" [class.set-active-item-font-to-white]="room.id == idSelected"></fa-icon>
+2 -4
View File
@@ -201,10 +201,8 @@ export class InactivityPage implements OnInit {
storePin() {
const code = this.code.join('')
SessionStore.setPin(code)
const code = this.code.join('');
SessionStore.setPin(code);
this.router.navigate(['/home/events']);
}
+1 -1
View File
@@ -126,7 +126,7 @@ export class AuthService {
this.loginToChatWs()
console.log('Login to Rocket chat OK');
console.log('Login to Rocket chat OK', responseChat);
this.ValidatedUserChat = responseChat;
localStorage.setItem('userChat', JSON.stringify(responseChat));
this.storageService.store(AuthConnstants.AUTH, responseChat);
+1 -1
View File
@@ -671,7 +671,7 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) {
if (this.ws.connected == false || loginRequired == true && this.isLogin == false) { // save data to send when back online
// console.log('save msgQueue this.ws.connected == false || loginRequired == true && this.isLogin == false',this.ws.connected, loginRequired, this.isLogin)
console.log('save msgQueue', requestId, message)
//console.log('save msgQueue', requestId, message)
this.wsMsgQueue[requestId] = {message, requestId, loginRequired}
} else {
@@ -48,11 +48,11 @@
</mat-menu>
</div>
<div class="title">
<ion-label>{{msg.u.name}} {{msg.offline}}</ion-label>
<ion-label>{{msg.u.name}}</ion-label>
<span class="time">{{showDateDuration(msg._updatedAt)}}</span>
</div>
<div>
<ion-label>{{msg.msg}} {{msg.offline}}</ion-label>
<ion-label>{{msg.msg}}</ion-label>
{{last ? scrollToBottom() : ''}}
</div>
</div>
@@ -73,7 +73,7 @@
<div>
<div *ngIf="msg.attachments" class="message-attachments">
<div *ngFor="let file of msg.attachments">
<div *ngIf="msg.file.type == 'application/img'" (click)="openPreview(msg)" dfsdvsvs>
<div *ngIf="msg.file.type == 'application/img'" (click)="openPreview(msg)">
<img src={{msg.file.image_url}} alt="image">
</div>
<div *ngIf="msg.file.type != 'application/img'">