fix notification

This commit is contained in:
Peter Maquiran
2022-01-29 17:06:25 +01:00
parent 2a0744e9ae
commit db987b00f9
5 changed files with 18 additions and 14 deletions
+1 -3
View File
@@ -280,7 +280,7 @@ export class RoomService {
if (this.hasLoadHistory) { return false }
this.storage.get('chatmsg' + this.id).then((messages = [])=>{
this.storage.get('chatmsg' + this.id).then((messages = []) => {
let localMessages = []
@@ -296,7 +296,6 @@ export class RoomService {
this.WsChatService.loadHistory(this.id, limit).then((chatHistory:chatHistory) => {
console.log('loadHistory', chatHistory)
let localMessages = []
chatHistory.result.messages.reverse().forEach(message => {
@@ -311,7 +310,6 @@ export class RoomService {
this.storage.set('chatmsg' + this.id, chatHistory.result.messages.reverse())
})
/* this.WsChatService.loadHistory(this.id, limit).then(async (chatHistory: chatHistory) => {