mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix chat eror
This commit is contained in:
@@ -95,10 +95,12 @@ export class ChatSystemService {
|
||||
}
|
||||
|
||||
loadChat() {
|
||||
this.ReLoadChat()
|
||||
if(SessionStore.user.ChatData) {
|
||||
this.ReLoadChat()
|
||||
}
|
||||
}
|
||||
|
||||
async ReLoadChat() {
|
||||
private async ReLoadChat() {
|
||||
|
||||
await this.chatService.refreshtoken();
|
||||
await this.restoreUsers();
|
||||
@@ -400,7 +402,7 @@ export class ChatSystemService {
|
||||
if (setData.name != 'Rocket Cat') {
|
||||
// create room
|
||||
if(!this.roomExist(roomId)) {
|
||||
let room:RoomService = new RoomService(this.RochetChatConnectorService, new MessageService(this.NfService, this.RochetChatConnectorService, this.ChatMethodsService, this.AESEncrypt, this.AttachmentsService, this.NetworkServiceService), this.storage, this.platform, this.sqlservice, this.NativeNotificationService, this.sortService, this.ChatService, this.NfService, this.ChatMethodsService, this.AESEncrypt, this.AttachmentsService, this.NetworkServiceService, this)
|
||||
let room:RoomService = new RoomService(this.RochetChatConnectorService, new MessageService(this.NfService, this.RochetChatConnectorService, this.ChatMethodsService, this.AESEncrypt, this.AttachmentsService, this.NetworkServiceService, this), this.storage, this.platform, this.sqlservice, this.NativeNotificationService, this.sortService, this.ChatService, this.NfService, this.ChatMethodsService, this.AESEncrypt, this.AttachmentsService, this.NetworkServiceService, this)
|
||||
room.setData(setData)
|
||||
room.receiveMessage()
|
||||
room.getAllUsers = this.getUsers
|
||||
|
||||
Reference in New Issue
Block a user