Merge pull request #1398 from Skidy89/master

change string to "lid" | "pn" in addressingMode
This commit is contained in:
Cassio Santos
2025-05-14 07:18:52 -03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -339,7 +339,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,

View File

@@ -11,7 +11,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 */