mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix browser icon and typo (#1450)
This commit is contained in:
committed by
GitHub
parent
5aa64f2c39
commit
e6e8e24ea9
@@ -69,7 +69,7 @@ export const generateRegistrationNode = (
|
||||
secondary: +(browserVersion[1] || 0),
|
||||
tertiary: +(browserVersion[2] || 0),
|
||||
},
|
||||
platformType: proto.CompanionProps.CompanionPropsPlatformType.CHROME,
|
||||
platformType: proto.CompanionProps.CompanionPropsPlatformType[config.browser[1].toUpperCase()] || proto.CompanionProps.CompanionPropsPlatformType.CHROME,
|
||||
requireFullSync: false,
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ export const areJidsSameUser = (jid1: string, jid2: string) => (
|
||||
export const isJidUser = (jid: string) => (jid?.endsWith('@s.whatsapp.net'))
|
||||
/** is the jid a broadcast */
|
||||
export const isJidBroadcast = (jid: string) => (jid?.endsWith('@broadcast'))
|
||||
/** is the jid a broadcast */
|
||||
/** is the jid a group */
|
||||
export const isJidGroup = (jid: string) => (jid?.endsWith('@g.us'))
|
||||
/** is the jid the status broadcast */
|
||||
export const isJidStatusBroadcast = (jid: string) => jid === 'status@broadcast'
|
||||
|
||||
Reference in New Issue
Block a user