This commit is contained in:
Peter Maquiran
2022-02-10 22:33:43 +01:00
parent c845de54aa
commit 2f6b0a904b
2 changed files with 2 additions and 10 deletions
+1 -9
View File
@@ -283,11 +283,6 @@ export class RoomService {
}
const message: MessageService = this.prepareMessage(offlineChatMessage, environment.chatOffline)
setTimeout(() => {
this.scrollDown()
}, 150)
message.send().then((ChatMessage) => {
this.updateMessageDB(ChatMessage, localReference)
@@ -404,11 +399,10 @@ export class RoomService {
if(wewMessage.offline == false) {
this.prepareMessage(ChatMessage)
} else {
const offlineMessage = this.prepareMessage(ChatMessage)
this.messagesLocalReference.push(offlineMessage.localReference)
offlineMessage.send().then((newChatMessage)=>{
offlineMessage.send().then((newChatMessage) => {
this.updateMessageDB(newChatMessage, ChatMessage.localReference)
})
@@ -435,8 +429,6 @@ export class RoomService {
}
await this.WsChatService.loadHistory(this.id, limit).then( async (chatHistory:chatHistory) => {
console.log('loadHistory', chatHistory)
await chatHistory.result.messages.reverse().forEach( async (message) => {
+1 -1
View File
@@ -13,7 +13,7 @@ export const environment = {
domain: 'gabinetedigital.local', //gabinetedigital.local
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
defaultuserpwd: 'tabteste@006', //tabteste@006,
chatOffline: false
chatOffline: true
};
/*