mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: fix format
This commit is contained in:
@@ -318,7 +318,7 @@ export const extractGroupMetadata = (result: BinaryNode) => {
|
||||
const memberAddMode = getBinaryNodeChildString(group, 'member_add_mode') === 'all_member_add'
|
||||
const metadata: GroupMetadata = {
|
||||
id: groupId,
|
||||
addressingMode: group.attrs.addressing_mode as "pn" | "lid",
|
||||
addressingMode: group.attrs.addressing_mode as 'pn' | 'lid',
|
||||
subject: group.attrs.subject,
|
||||
subjectOwner: group.attrs.s_o,
|
||||
subjectTime: +group.attrs.s_t,
|
||||
|
||||
@@ -634,10 +634,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
isLid ? authState.creds.me?.lid : authState.creds.me?.id
|
||||
)
|
||||
const remoteJid = !isNodeFromMe || isJidGroup(attrs.from) ? attrs.from : attrs.recipient
|
||||
const fromMe = !attrs.recipient || (
|
||||
(attrs.type === 'retry' || attrs.type === 'sender')
|
||||
&& isNodeFromMe
|
||||
)
|
||||
const fromMe = !attrs.recipient || ((attrs.type === 'retry' || attrs.type === 'sender') && isNodeFromMe)
|
||||
|
||||
const key: proto.IMessageKey = {
|
||||
remoteJid,
|
||||
|
||||
Reference in New Issue
Block a user