63183

Hierarchy (View Summary)

Constructors

Properties

Methods

addChild addMediaMsgs assignedColor bind canArchive cancelPendingPromises canPin canSenderRevoke clear constructMediaMsgs decObservers decPending delete deleteMsgs deleteMsgsBeforeMsgInclusive deleteMsgsOlderThan deleteMsgsPartial deregisterExpiredViewOnceBulkMessages dismissVcard emit forwardMessages fts get getAckedPhoneProps getAllCMCs getAllMsgs getCollection getComposeContents getDefault getDisappearingModeInitiator getDocMsgs getEphemeralSetting getEphemeralSettingTimestamp getFirstMsgWithStatus getGroupMetadataCollection getLastMsgKeyForAction getLastReceivedMsg getLastReceivedNonExpiredMsg getLastTimestampMsg getLinkMsgs getMediaMsgs getParticipantCount getProductMsgs getReceivedVcardMsgs getSearchContext? getSessionPersistedComposeContents getStarredMsgs getWebcChatType hasMaybeSentMsgToChat hasObservers hasUnfiredChanges incObservers initialize isDirty isEphemeralSettingOn isListening isMostRecentCMC isMsgForMediaCollection isSupportGroup isTrusted listenTo listenToAndRun listenToOnce loadAssignedColors loadEarlierMsgs loadRecentMsgs matchFilter notifyMsgCollectionMerge off on onActiveUpdate once onEmptyMRM onNewMsg onNotSpamChange onPendingActionUpdate preload regCancellablePromise removeAllListeners removeFromCollection removeListener removeMsg removeMsgsCollection replaceMsgsCollection reset resetMediaMsgs resetMediasCount saveAssignedColors sendDeleteMsgs sendDismissChangeNumber sendGroupInviteMessage sendRevokeMsgs serialize set setAndKeepPrevious setAttachMediaContents setComposeContents shouldShowEphemeralSetting sortMsgs stopListening title toJSON trigger unbind unset unstarAll updateCanSend updateIsAnnounceGrpRestrict updateMediasCountOnMsg updateMuteExpiration updateReadOnly updateSortTime updateTitle waitForChatLoading isIdType

Constructors

Properties

ackedProps?: any
active?: any
archive?: any
attachMediaContents?: any
attributes: Props & Session
canSend: boolean
canUnread: boolean
changeNumberNewJid?: any
changeNumberOldJid?: any
collection?: ChatCollection
colors?: any
composeContents?: any
composeQuotedMsg?: any
composeQuotedMsgRemoteJid?: any
contact?: any
createdLocally?: any
disableUnreadAnchor: any
disappearingModeInitiator?: any
docCount?: any
endOfHistoryTransfer?: any
endOfHistoryTransferType?: any
ephemeralDuration?: any
ephemeralSettingTimestamp?: any
formattedTitle?: string
ftsCache?: any
groupMetadata?: GroupMetadataModel
hasEstablishedE2EESession: boolean
hasUnread: boolean

Deprecated in favor of getHasUnread

id: Wid
idClass: typeof Wid
isAnnounceGrpRestrict: boolean
isBroadcast: boolean
isGroup: boolean

Deprecated in favor of getIsPSA

isNewsletter: boolean
isParentGroup: boolean

Deprecated in favor of getIsGroup

isPSA: boolean

Deprecated in favor of getIsUser

isReadOnly: boolean
isState: true
isUser: boolean
kind?: any
labels?: string[]
lastReceivedKey?: MsgKey
linkCount?: any
liveLocation?: any
liveLocationQueried?: any
markedUnread?: any
mediaCount?: any
mirrorMask: {
    "change:ackedProps"?: number;
    "change:active"?: number;
    "change:archive"?: number;
    "change:attachMediaContents"?: number;
    "change:canSend": number;
    "change:canUnread": number;
    "change:changeNumberNewJid"?: number;
    "change:changeNumberOldJid"?: number;
    "change:colors"?: number;
    "change:composeContents"?: number;
    "change:composeQuotedMsg"?: number;
    "change:composeQuotedMsgRemoteJid"?: number;
    "change:contact"?: number;
    "change:createdLocally"?: number;
    "change:disableUnreadAnchor": number;
    "change:disappearingModeInitiator"?: number;
    "change:docCount"?: number;
    "change:endOfHistoryTransfer"?: number;
    "change:endOfHistoryTransferType"?: number;
    "change:ephemeralDuration"?: number;
    "change:ephemeralSettingTimestamp"?: number;
    "change:formattedTitle"?: number;
    "change:ftsCache"?: number;
    "change:groupMetadata"?: number;
    "change:hasEstablishedE2EESession": number;
    "change:hasUnread": number;
    "change:id": number;
    "change:isAnnounceGrpRestrict": number;
    "change:isBroadcast": number;
    "change:isGroup": number;
    "change:isNewsletter": number;
    "change:isParentGroup": number;
    "change:isPSA": number;
    "change:isReadOnly": number;
    "change:isUser": number;
    "change:kind"?: number;
    "change:labels"?: number;
    "change:lastReceivedKey"?: number;
    "change:linkCount"?: number;
    "change:liveLocation"?: number;
    "change:liveLocationQueried"?: number;
    "change:markedUnread"?: number;
    "change:mediaCount"?: number;
    "change:modifyTag"?: number;
    "change:msgChunks": number;
    "change:msgsChanged": number;
    "change:msgsLength": number;
    "change:msgUnsyncedButtonReplyMsgs"?: number;
    "change:mute": number;
    "change:muteExpiration"?: number;
    "change:name"?: number;
    "change:notSpam"?: number;
    "change:optimisticUnreadCount"?: number;
    "change:pausedTimerId"?: number;
    "change:pendingAction"?: number;
    "change:pendingInitialLoading"?: number;
    "change:pendingMsgs": number;
    "change:pendingSeenCount"?: number;
    "change:pin"?: number;
    "change:presence"?: number;
    "change:presenceResendTimerId"?: number;
    "change:previewMessage"?: number;
    "change:productCount"?: number;
    "change:promises": number;
    "change:quotedMsgAdminGroupJid"?: number;
    "change:recording"?: number;
    "change:shouldAppearInList"?: number;
    "change:shouldShowUnreadDivider"?: number;
    "change:shouldShowUnreadInTitle"?: number;
    "change:showChangeNumberNotification"?: number;
    "change:squelch"?: number;
    "change:stale"?: number;
    "change:t"?: number;
    "change:trusted"?: number;
    "change:typing"?: number;
    "change:unreadCount": number;
    "change:unreadMentionsOfMe"?: number;
    "change:unreadMsgAnchor": number;
    "change:vcardDismissed"?: number;
}
modifyTag?: any
msgChunks: MsgLoad[]
msgs: MsgLoad
msgsChanged: number
msgsLength: number
msgUnsyncedButtonReplyMsgs?: any
mute: MuteModel
muteExpiration?: any
name?: string
notSpam?: any
optimisticUnreadCount?: any
parent?: any
pausedTimerId?: any
pendingAction?: any
pendingInitialLoading?: any
pendingMsgs: boolean
pendingSeenCount?: any
pin?: any
presence?: any
presenceResendTimerId?: any
previewMessage?: any

Deprecated in favor of getPreviewMessage

productCount?: any
promises: { [key: string]: undefined | null | Promise<any> }
proxyName: string
quotedMsgAdminGroupJid?: any
recording?: any
shouldAppearInList?: any

Deprecated in favor of getShouldAppearInList

shouldShowUnreadDivider?: any

Deprecated in favor of getShouldShowUnreadDivider

shouldShowUnreadInTitle?: any
showChangeNumberNotification?: any

Deprecated in favor of getShowChangeNumberNotification

squelch?: any
stale?: any
t?: number
trusted?: any
typing?: any
unreadCount: number
unreadMentionsOfMe?: any
unreadMsgAnchor: any
vcardDismissed?: any
allowedIds?: any[]
idClass?: any
Proxy: string

Methods

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optionallistener: Listener

      The callback function.

    Returns this

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optionallistener: Listener

      The callback function.

    Returns this

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optionallistener: Listener

      The callback function.

    Returns this

  • Removes the specified listener from the listener array for the event named eventName.

    Parameters

    • OptionaleventName: Event

      The name of the event.

    • Optionallistener: Listener

      The callback function.

    • Optionalcontext: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Adds the listener function to the end of the listeners array for the event named eventName.

    Parameters

    • eventName: Event

      The name of the event.

    • listener: Listener

      The callback function.

    • Optionalcontext: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Adds a one-time listener function for the event named eventName.

    Parameters

    • eventName: Event

      The name of the event.

    • listener: Listener

      The callback function.

    • Optionalcontext: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Parameters

    • Optionale: any
    • Optionalt: any
    • Optionalr: any
    • Optionala: any
    • Optionali: any
    • Optionaln: any

    Returns any

  • Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

    Parameters

    • eventName: Event
    • ...args: any[]

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.