mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
feature
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user