mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Download file and display
This commit is contained in:
@@ -495,6 +495,7 @@ export class ChatPage implements OnInit {
|
||||
roomsArray.push(roomList)
|
||||
});
|
||||
|
||||
this.storageservice.remove('rooms');
|
||||
this.storageservice.store('rooms', roomsArray);
|
||||
|
||||
} else {
|
||||
@@ -513,7 +514,7 @@ export class ChatPage implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
transformDataUserList(users) {
|
||||
async transformDataUserList(users) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
let usersArray = [];
|
||||
users.forEach(element => {
|
||||
@@ -526,7 +527,8 @@ export class ChatPage implements OnInit {
|
||||
console.log('TRANSFORM USER CHAT 2', chatusers)
|
||||
usersArray.push(chatusers);
|
||||
});
|
||||
this.storageservice.store('chatusers',usersArray);
|
||||
await this.storageservice.remove('chatusers');
|
||||
await this.storageservice.store('chatusers',usersArray);
|
||||
} else {
|
||||
users.forEach(element => {
|
||||
console.log('TRANSFORM USER CHAT 1', element)
|
||||
@@ -669,7 +671,7 @@ export class ChatPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
transformGroups(data) {
|
||||
async transformGroups(data) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
let groupsArray = [];
|
||||
data.forEach(element => {
|
||||
@@ -687,7 +689,8 @@ export class ChatPage implements OnInit {
|
||||
groupsArray.push(roomList)
|
||||
});
|
||||
|
||||
this.storageservice.store('grouprooms', groupsArray);
|
||||
await this.storageservice.remove('grouprooms');
|
||||
await this.storageservice.store('grouprooms', groupsArray);
|
||||
|
||||
} else {
|
||||
data.forEach(element => {
|
||||
|
||||
Reference in New Issue
Block a user