mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix slow chat
This commit is contained in:
@@ -334,22 +334,28 @@ export class RoomService {
|
||||
message.loadHistory = this.DoneLoadingHistory
|
||||
|
||||
this.lastMessage = message;
|
||||
this.calDateDuration(ChatMessage._updatedAt);
|
||||
|
||||
try {
|
||||
this.calDateDuration(ChatMessage._updatedAt);
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
|
||||
if (message.t == 'r') {
|
||||
this.name = message.msg;
|
||||
}
|
||||
|
||||
if (this.isSenderIsNotMe(ChatMessage)) {
|
||||
//if (this.isSenderIsNotMe(ChatMessage)) {
|
||||
/* this.NativeNotificationService.sendNotificationChat({
|
||||
message: message.msg,
|
||||
title: this.name
|
||||
}); */
|
||||
}
|
||||
//}
|
||||
|
||||
if (this.hasLoadHistory == true) {
|
||||
this.messages.push(message)
|
||||
await message.addMessageDB()
|
||||
message.addMessageDB()
|
||||
} else {
|
||||
this.messagesBeforeOfflineAPI.push(message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user