mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: remove chat attribute deletions in history.ts (#1590)
This commit is contained in:
@@ -46,9 +46,6 @@ export const processHistoryMessage = (item: proto.IHistorySync) => {
|
|||||||
|
|
||||||
const msgs = chat.messages || []
|
const msgs = chat.messages || []
|
||||||
delete chat.messages
|
delete chat.messages
|
||||||
delete chat.archived
|
|
||||||
delete chat.muteEndTime
|
|
||||||
delete chat.pinned
|
|
||||||
|
|
||||||
for (const item of msgs) {
|
for (const item of msgs) {
|
||||||
const message = item.message!
|
const message = item.message!
|
||||||
@@ -75,10 +72,6 @@ export const processHistoryMessage = (item: proto.IHistorySync) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isJidUser(chat.id) && chat.readOnly && chat.archived) {
|
|
||||||
delete chat.readOnly
|
|
||||||
}
|
|
||||||
|
|
||||||
chats.push({ ...chat })
|
chats.push({ ...chat })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user