mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Slint fixes applied
This commit is contained in:
@@ -335,13 +335,7 @@ export default (
|
||||
labelAssociations
|
||||
})
|
||||
|
||||
const fromJSON = (json: {
|
||||
chats: Chat[],
|
||||
contacts: { [id: string]: Contact },
|
||||
messages: { [id: string]: WAMessage[] },
|
||||
labels: { [labelId: string]: Label },
|
||||
labelAssociations: LabelAssociation[]
|
||||
}) => {
|
||||
const fromJSON = (json: {chats: Chat[], contacts: { [id: string]: Contact }, messages: { [id: string]: WAMessage[] }, labels: { [labelId: string]: Label }, labelAssociations: LabelAssociation[]}) => {
|
||||
chats.upsert(...json.chats)
|
||||
labelAssociations.upsert(...json.labelAssociations || [])
|
||||
contactsUpsert(Object.values(json.contacts))
|
||||
|
||||
@@ -28,4 +28,5 @@ export class ObjectRepository<T extends object> {
|
||||
toJSON() {
|
||||
return this.findAll()
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,13 +15,7 @@ export type WAReadReceiptsValue = 'all' | 'none'
|
||||
/** set of statuses visible to other people; see updatePresence() in WhatsAppWeb.Send */
|
||||
export type WAPresence = 'unavailable' | 'available' | 'composing' | 'recording' | 'paused'
|
||||
|
||||
export const ALL_WA_PATCH_NAMES = [
|
||||
'critical_block',
|
||||
'critical_unblock_low',
|
||||
'regular_high',
|
||||
'regular_low',
|
||||
'regular'
|
||||
] as const
|
||||
export const ALL_WA_PATCH_NAMES = ['critical_block', 'critical_unblock_low', 'regular_high', 'regular_low', 'regular'] as const
|
||||
|
||||
export type WAPatchName = typeof ALL_WA_PATCH_NAMES[number]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user