mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Merge branch 'master' of https://github.com/WhiskeySockets/Baileys into fix-eslint-prettier-editorconfig-rules
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,
|
||||
addressingMode: group.attrs.addressing_mode as "pn" | "lid",
|
||||
subject: group.attrs.subject,
|
||||
subjectOwner: group.attrs.s_o,
|
||||
subjectTime: +group.attrs.s_t,
|
||||
|
||||
@@ -15,7 +15,7 @@ export type RequestJoinMethod = 'invite_link' | 'linked_group_join' | 'non_admin
|
||||
export interface GroupMetadata {
|
||||
id: string
|
||||
/** group uses 'lid' or 'pn' to send messages */
|
||||
addressingMode: string
|
||||
addressingMode: 'pn' | 'lid'
|
||||
owner: string | undefined
|
||||
subject: string
|
||||
/** group subject owner */
|
||||
|
||||
Reference in New Issue
Block a user