63183

Hierarchy (view full)

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
isUser: boolean
kind?: any
labels?: string[]
lastReceivedKey?: MsgKey
linkCount?: any
liveLocation?: any
liveLocationQueried?: any
markedUnread?: any
mediaCount?: any
mirrorMask: {
    change:ackedProps: undefined | number;
    change:active: undefined | number;
    change:archive: undefined | number;
    change:attachMediaContents: undefined | number;
    change:canSend: number;
    change:canUnread: number;
    change:changeNumberNewJid: undefined | number;
    change:changeNumberOldJid: undefined | number;
    change:colors: undefined | number;
    change:composeContents: undefined | number;
    change:composeQuotedMsg: undefined | number;
    change:composeQuotedMsgRemoteJid: undefined | number;
    change:contact: undefined | number;
    change:createdLocally: undefined | number;
    change:disableUnreadAnchor: number;
    change:disappearingModeInitiator: undefined | number;
    change:docCount: undefined | number;
    change:endOfHistoryTransfer: undefined | number;
    change:endOfHistoryTransferType: undefined | number;
    change:ephemeralDuration: undefined | number;
    change:ephemeralSettingTimestamp: undefined | number;
    change:formattedTitle: undefined | number;
    change:ftsCache: undefined | number;
    change:groupMetadata: undefined | 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: undefined | number;
    change:labels: undefined | number;
    change:lastReceivedKey: undefined | number;
    change:linkCount: undefined | number;
    change:liveLocation: undefined | number;
    change:liveLocationQueried: undefined | number;
    change:markedUnread: undefined | number;
    change:mediaCount: undefined | number;
    change:modifyTag: undefined | number;
    change:msgChunks: number;
    change:msgsChanged: number;
    change:msgsLength: number;
    change:msgUnsyncedButtonReplyMsgs: undefined | number;
    change:mute: number;
    change:muteExpiration: undefined | number;
    change:name: undefined | number;
    change:notSpam: undefined | number;
    change:optimisticUnreadCount: undefined | number;
    change:pausedTimerId: undefined | number;
    change:pendingAction: undefined | number;
    change:pendingInitialLoading: undefined | number;
    change:pendingMsgs: number;
    change:pendingSeenCount: undefined | number;
    change:pin: undefined | number;
    change:presence: undefined | number;
    change:presenceResendTimerId: undefined | number;
    change:previewMessage: undefined | number;
    change:productCount: undefined | number;
    change:promises: number;
    change:quotedMsgAdminGroupJid: undefined | number;
    change:recording: undefined | number;
    change:shouldAppearInList: undefined | number;
    change:shouldShowUnreadDivider: undefined | number;
    change:shouldShowUnreadInTitle: undefined | number;
    change:showChangeNumberNotification: undefined | number;
    change:squelch: undefined | number;
    change:stale: undefined | number;
    change:t: undefined | number;
    change:trusted: undefined | number;
    change:typing: undefined | number;
    change:unreadCount: number;
    change:unreadMentionsOfMe: undefined | number;
    change:unreadMsgAnchor: number;
    change:vcardDismissed: undefined | 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]: Promise<any> | undefined | null;
}
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

    • msg: MsgModel | MsgKey
    • Optionaloptions: {
          isQuotedMsgAvailable: boolean;
      }
      • isQuotedMsgAvailable: boolean

    Returns {
        collection: MsgLoad;
        highlightMsg: true;
        key?: MsgKey;
        msg?: MsgModel;
    }

  • 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
    • Rest...args: any[]

    Returns this

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