This commit is contained in:
Peter Maquiran
2022-03-25 14:32:15 +01:00
parent 7ef93a2aff
commit f2cf316329
3 changed files with 23 additions and 11 deletions
+2 -4
View File
@@ -367,8 +367,6 @@ export class RoomService {
if(this.messages[i]?._id == id ) {
console.log(_id,'==',this.messages[i]?._id, true)
this.messages.splice(i, 1)
@@ -382,7 +380,7 @@ export class RoomService {
if (SessionStore.user.RochetChatUser == this.messages[i].u.username) {
const allMemberThatIsOffline = this.getAllMemberThatIsOffline()
await DeleteMessageModel.create({
DeleteMessageModel.create({
messageId: this.messages[i]._id,
rid: this.messages[i].rid,
ts: this.messages[i].ts,
@@ -391,7 +389,7 @@ export class RoomService {
})
}
await this.messages[i].delateDB()
this.messages[i].delateDB()
return true