This commit is contained in:
Peter Maquiran
2023-02-09 16:05:36 +01:00
parent 07b958651a
commit d933df5b31
37 changed files with 139 additions and 48 deletions
+6 -1
View File
@@ -102,6 +102,11 @@ export class ChatSystemService {
}
});
if(SessionStore.user?.ChatData?.data) {
this.restoreRooms();
}
}
loadChat() {
@@ -166,7 +171,7 @@ export class ChatSystemService {
async restoreRooms() {
try {
const rooms = await this.storage.remove('Rooms');
const rooms = await this.storage.get('Rooms');
if(rooms) {
for (let roomData of rooms.result.update) {