mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix
This commit is contained in:
@@ -18,6 +18,7 @@ import { ChatMethodsService } from './chat-methods.service';
|
||||
import { AESEncrypt } from '../aesencrypt.service'
|
||||
import { AttachmentsService } from 'src/app/services/attachments.service';
|
||||
import { NetworkServiceService} from 'src/app/services/network-service.service';
|
||||
import { JsonStore } from '../jsonStore.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -273,6 +274,7 @@ export class ChatSystemService {
|
||||
}
|
||||
}
|
||||
|
||||
this.loadingWholeList = false
|
||||
await this.storage.set('Rooms', rooms);
|
||||
|
||||
setTimeout(() => {
|
||||
@@ -284,7 +286,6 @@ export class ChatSystemService {
|
||||
this.sortRoomList()
|
||||
}, 10000)
|
||||
|
||||
this.loadingWholeList = false
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -575,9 +576,14 @@ export class ChatSystemService {
|
||||
})[0]
|
||||
|
||||
if(roomName) {
|
||||
const firstName = capitalizeTxt(roomName.split('.')[0])
|
||||
const lastName = capitalizeTxt(roomName.split('.')[1])
|
||||
return firstName + ' ' + lastName
|
||||
try {
|
||||
const firstName = capitalizeTxt(roomName.split('.')[0])
|
||||
const lastName = capitalizeTxt(roomName.split('.')[1])
|
||||
return firstName + ' ' + lastName
|
||||
} catch(e) {
|
||||
return roomData['membersExcludeMe'][0].name
|
||||
}
|
||||
|
||||
} else if(roomData.name) {
|
||||
return roomData.name
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user