This commit is contained in:
Peter Maquiran
2022-03-04 14:50:13 +01:00
parent c112080917
commit 4dd7c83279
4 changed files with 50 additions and 6 deletions
+12 -2
View File
@@ -142,7 +142,7 @@ export class MessageService {
this.WsChatService.registerCallback({
type: 'reConnect',
funx: async ()=> {
this.WsChatService.send(params).then(({message, requestId}) => {
let ChatMessage = message.result
this.messageSend = true
@@ -186,7 +186,6 @@ export class MessageService {
},
(error) => {
this.WsChatService.registerCallback({
type: 'reConnect',
funx: async ()=> {
@@ -239,8 +238,19 @@ export class MessageService {
reference = 'localReference'
}
const message = this.getChatObj()
// const viewed = [...new Set([...ChatMessage.viewed,...this.viewed])];
// const received = [...new Set([...ChatMessage.received,...this.received])];
// if(ChatMessage.msg.includes('***********')) {
// console.log('redefinedMessage')
// console.log(JSON.stringify(ChatMessage))
// console.log(JSON.stringify(message))
// console.log(JSON.stringify(Object.assign(message, ChatMessage)))
// }
ChatMessage = Object.assign(message, ChatMessage)