mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
remove promise bug
This commit is contained in:
@@ -630,7 +630,7 @@ export class RoomService {
|
||||
}
|
||||
|
||||
if(lastIsTyping != this.isTyping) {
|
||||
this.RochetChatConnectorService.sendStreamNotifyRoom(this.id, SessionStore.user.UserName, 'typing', this.isTyping)
|
||||
this.RochetChatConnectorService.sendStreamNotifyRoom(this.id, SessionStore.user.UserName, 'typing', this.isTyping).catch((error) => console.error(error));
|
||||
}
|
||||
|
||||
|
||||
@@ -639,7 +639,7 @@ export class RoomService {
|
||||
}
|
||||
|
||||
sendFalseTypingReadMessage(method,param: object) {
|
||||
this.RochetChatConnectorService.sendStreamNotifyRoom(this.id, SessionStore.user.UserName, 'typing', {method:method, params: param} as falseTypingMethod)
|
||||
this.RochetChatConnectorService.sendStreamNotifyRoom(this.id, SessionStore.user.UserName, 'typing', {method:method, params: param} as falseTypingMethod).catch((error) => console.error(error))
|
||||
this.setTypingOff()
|
||||
}
|
||||
|
||||
@@ -651,7 +651,7 @@ export class RoomService {
|
||||
|
||||
if(this.isTyping == true) {
|
||||
this.isTyping = false
|
||||
this.RochetChatConnectorService.sendStreamNotifyRoom(this.id, SessionStore.user.UserName, 'typing', this.isTyping)
|
||||
this.RochetChatConnectorService.sendStreamNotifyRoom(this.id, SessionStore.user.UserName, 'typing', this.isTyping).catch((error) => console.error(error))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -675,7 +675,7 @@ export class RoomService {
|
||||
|
||||
|
||||
leave(rid?) {
|
||||
this.RochetChatConnectorService.leaveRoom(this.id)
|
||||
this.RochetChatConnectorService.leaveRoom(this.id).catch((error) => console.error(error))
|
||||
}
|
||||
|
||||
isJson(str) {
|
||||
@@ -1003,7 +1003,9 @@ export class RoomService {
|
||||
}
|
||||
|
||||
sendReadMessage() {
|
||||
this.RochetChatConnectorService.readMessage(this.id)
|
||||
this.RochetChatConnectorService.readMessage(this.id).catch((error) =>{
|
||||
console.error(error)
|
||||
})
|
||||
this.sendFalseTypingReadMessage('viewMessage', {})
|
||||
this.messageUnread = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user