fix mobile

This commit is contained in:
Peter Maquiran
2022-01-29 20:39:35 +01:00
parent eb504f5342
commit d64065d082
3 changed files with 6 additions and 32 deletions
@@ -39,7 +39,6 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
showLoader: boolean;
isGroupCreated:boolean;
loggedUser: any;
messages:any;
room:any;
roomName:any;
@@ -614,7 +613,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
chatmsgArray.push(msgChat)
});
this.messages = chatmsgArray;
// this.messages = chatmsgArray;
console.log('GROUP CHAT MSG FROM DB', chatmsgArray)
})
}
@@ -673,7 +672,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
//this.loadMessages()
let msgOnly = res['messages'].filter(data => data.t != 'au');
//this.messages = msgOnly.reverse();
console.log('MOBILE MSG ROCKET',this.messages);
// console.log('MOBILE MSG ROCKET',this.messages);
this.transformDataMSG(msgOnly.reverse());
this.getRoomMessageDB(this.roomId);
// Reconnect in one second