@hiroosy/baileys-lite 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WAProto/index.js +231 -113252
- package/WAProto/parts/ADVDeviceIdentity.part +201 -0
- package/WAProto/parts/ADVEncryptionType.part +6 -0
- package/WAProto/parts/ADVKeyIndexList.part +201 -0
- package/WAProto/parts/ADVSignedDeviceIdentity.part +150 -0
- package/WAProto/parts/ADVSignedDeviceIdentityHMAC.part +142 -0
- package/WAProto/parts/ADVSignedKeyIndexList.part +128 -0
- package/WAProto/parts/AIHomeState.part +405 -0
- package/WAProto/parts/AIMediaCollectionMessage.part +119 -0
- package/WAProto/parts/AIMediaCollectionMetadata.part +100 -0
- package/WAProto/parts/AIMetadataOperation.part +83 -0
- package/WAProto/parts/AIQueryFanout.part +133 -0
- package/WAProto/parts/AIRegenerateMetadata.part +112 -0
- package/WAProto/parts/AIRichResponseCodeMetadata.part +252 -0
- package/WAProto/parts/AIRichResponseContentItemsMetadata.part +354 -0
- package/WAProto/parts/AIRichResponseDynamicMetadata.part +172 -0
- package/WAProto/parts/AIRichResponseGridImageMetadata.part +114 -0
- package/WAProto/parts/AIRichResponseImageURL.part +119 -0
- package/WAProto/parts/AIRichResponseInlineImageMetadata.part +164 -0
- package/WAProto/parts/AIRichResponseLatexMetadata.part +346 -0
- package/WAProto/parts/AIRichResponseMapMetadata.part +346 -0
- package/WAProto/parts/AIRichResponseMessage.part +167 -0
- package/WAProto/parts/AIRichResponseMessageType.part +5 -0
- package/WAProto/parts/AIRichResponseSubMessage.part +313 -0
- package/WAProto/parts/AIRichResponseSubMessageType.part +13 -0
- package/WAProto/parts/AIRichResponseTableMetadata.part +223 -0
- package/WAProto/parts/AIRichResponseUnifiedResponse.part +84 -0
- package/WAProto/parts/AISubscriptionRequestType.part +7 -0
- package/WAProto/parts/AISubscriptionUpsellMetadata.part +102 -0
- package/WAProto/parts/AIThreadInfo.part +316 -0
- package/WAProto/parts/Account.part +138 -0
- package/WAProto/parts/ActionLink.part +100 -0
- package/WAProto/parts/AutoDownloadSettings.part +138 -0
- package/WAProto/parts/AvatarUserSettings.part +100 -0
- package/WAProto/parts/BizAccountLinkInfo.part +210 -0
- package/WAProto/parts/BizAccountPayload.part +105 -0
- package/WAProto/parts/BizIdentityInfo.part +298 -0
- package/WAProto/parts/BotAgeCollectionMetadata.part +138 -0
- package/WAProto/parts/BotAgentDeepLinkMetadata.part +81 -0
- package/WAProto/parts/BotAgentMetadata.part +83 -0
- package/WAProto/parts/BotCapabilityMetadata.part +437 -0
- package/WAProto/parts/BotCommandMetadata.part +119 -0
- package/WAProto/parts/BotDocumentMessageMetadata.part +100 -0
- package/WAProto/parts/BotFeedbackMessage.part +1366 -0
- package/WAProto/parts/BotGroupMetadata.part +92 -0
- package/WAProto/parts/BotGroupParticipantMetadata.part +81 -0
- package/WAProto/parts/BotImagineMetadata.part +134 -0
- package/WAProto/parts/BotInfrastructureDiagnostics.part +148 -0
- package/WAProto/parts/BotLinkedAccount.part +95 -0
- package/WAProto/parts/BotLinkedAccountsMetadata.part +134 -0
- package/WAProto/parts/BotMediaMetadata.part +229 -0
- package/WAProto/parts/BotMemoryFact.part +100 -0
- package/WAProto/parts/BotMemoryMetadata.part +141 -0
- package/WAProto/parts/BotMemuMetadata.part +92 -0
- package/WAProto/parts/BotMessageOrigin.part +95 -0
- package/WAProto/parts/BotMessageOriginMetadata.part +92 -0
- package/WAProto/parts/BotMessageSharingInfo.part +297 -0
- package/WAProto/parts/BotMetadata.part +934 -0
- package/WAProto/parts/BotMetricsEntryPoint.part +51 -0
- package/WAProto/parts/BotMetricsMetadata.part +341 -0
- package/WAProto/parts/BotMetricsThreadEntryPoint.part +8 -0
- package/WAProto/parts/BotModeSelectionMetadata.part +151 -0
- package/WAProto/parts/BotModelMetadata.part +167 -0
- package/WAProto/parts/BotPluginMetadata.part +379 -0
- package/WAProto/parts/BotProgressIndicatorMetadata.part +837 -0
- package/WAProto/parts/BotPromotionMessageMetadata.part +124 -0
- package/WAProto/parts/BotPromptSuggestion.part +100 -0
- package/WAProto/parts/BotPromptSuggestions.part +92 -0
- package/WAProto/parts/BotPttPromptMetadata.part +81 -0
- package/WAProto/parts/BotQuotaMetadata.part +241 -0
- package/WAProto/parts/BotReminderMetadata.part +232 -0
- package/WAProto/parts/BotRenderingConfigMetadata.part +100 -0
- package/WAProto/parts/BotRenderingMetadata.part +203 -0
- package/WAProto/parts/BotResolvedToolCallMetadata.part +100 -0
- package/WAProto/parts/BotSessionMetadata.part +137 -0
- package/WAProto/parts/BotSessionSource.part +11 -0
- package/WAProto/parts/BotSignatureVerificationMetadata.part +92 -0
- package/WAProto/parts/BotSignatureVerificationUseCaseProof.part +183 -0
- package/WAProto/parts/BotSourcesMetadata.part +322 -0
- package/WAProto/parts/BotSuggestedPromptMetadata.part +150 -0
- package/WAProto/parts/BotUnifiedResponseMutation.part +339 -0
- package/WAProto/parts/CallLogRecord.part +646 -0
- package/WAProto/parts/CertChain.part +392 -0
- package/WAProto/parts/ChatLockSettings.part +102 -0
- package/WAProto/parts/ChatRowOpaqueData.part +712 -0
- package/WAProto/parts/Citation.part +119 -0
- package/WAProto/parts/ClientPairingProps.part +160 -0
- package/WAProto/parts/ClientPayload.part +2892 -0
- package/WAProto/parts/CollectionName.part +9 -0
- package/WAProto/parts/CommentMetadata.part +102 -0
- package/WAProto/parts/CompanionCommitment.part +84 -0
- package/WAProto/parts/CompanionEphemeralIdentity.part +227 -0
- package/WAProto/parts/Config.part +136 -0
- package/WAProto/parts/ContextInfo.part +4137 -0
- package/WAProto/parts/Conversation.part +1472 -0
- package/WAProto/parts/DeviceCapabilities.part +670 -0
- package/WAProto/parts/DeviceConsistencyCodeMessage.part +103 -0
- package/WAProto/parts/DeviceListMetadata.part +306 -0
- package/WAProto/parts/DeviceProps.part +982 -0
- package/WAProto/parts/DisappearingMode.part +206 -0
- package/WAProto/parts/EmbeddedContent.part +100 -0
- package/WAProto/parts/EmbeddedMessage.part +102 -0
- package/WAProto/parts/EmbeddedMusic.part +370 -0
- package/WAProto/parts/EncryptedPairingRequest.part +106 -0
- package/WAProto/parts/EphemeralSetting.part +110 -0
- package/WAProto/parts/EventAdditionalMetadata.part +81 -0
- package/WAProto/parts/EventResponse.part +152 -0
- package/WAProto/parts/ExitCode.part +110 -0
- package/WAProto/parts/ExternalBlobReference.part +195 -0
- package/WAProto/parts/Field.part +193 -0
- package/WAProto/parts/ForwardedAIBotMessageInfo.part +119 -0
- package/WAProto/parts/GlobalSettings.part +497 -0
- package/WAProto/parts/GroupHistoryBundleInfo.part +141 -0
- package/WAProto/parts/GroupHistoryIndividualMessageInfo.part +102 -0
- package/WAProto/parts/GroupMention.part +100 -0
- package/WAProto/parts/GroupParticipant.part +142 -0
- package/WAProto/parts/GroupRootKeyShare.part +92 -0
- package/WAProto/parts/GroupRootKeyShareEntry.part +161 -0
- package/WAProto/parts/HandshakeMessage.part +815 -0
- package/WAProto/parts/HatchMetadataSync.part +132 -0
- package/WAProto/parts/HistorySync.part +605 -0
- package/WAProto/parts/HistorySyncMsg.part +112 -0
- package/WAProto/parts/HydratedTemplateButton.part +501 -0
- package/WAProto/parts/IdentityKeyPairStructure.part +106 -0
- package/WAProto/parts/InThreadSurveyMetadata.part +779 -0
- package/WAProto/parts/InlineContact.part +157 -0
- package/WAProto/parts/InteractiveAnnotation.part +246 -0
- package/WAProto/parts/InteractiveMessageAdditionalMetadata.part +81 -0
- package/WAProto/parts/KeepInChat.part +225 -0
- package/WAProto/parts/KeepType.part +6 -0
- package/WAProto/parts/KeyExchangeMessage.part +169 -0
- package/WAProto/parts/KeyId.part +84 -0
- package/WAProto/parts/LIDMigrationMapping.part +149 -0
- package/WAProto/parts/LIDMigrationMappingSyncMessage.part +84 -0
- package/WAProto/parts/LIDMigrationMappingSyncPayload.part +122 -0
- package/WAProto/parts/LegacyMessage.part +104 -0
- package/WAProto/parts/LimitSharing.part +177 -0
- package/WAProto/parts/LocalizedName.part +119 -0
- package/WAProto/parts/Location.part +119 -0
- package/WAProto/parts/MediaData.part +81 -0
- package/WAProto/parts/MediaDomainInfo.part +120 -0
- package/WAProto/parts/MediaKeyDomain.part +6 -0
- package/WAProto/parts/MediaNotifyMessage.part +132 -0
- package/WAProto/parts/MediaRetryNotification.part +170 -0
- package/WAProto/parts/MediaVisibility.part +6 -0
- package/WAProto/parts/MemberLabel.part +110 -0
- package/WAProto/parts/Message.part +32376 -0
- package/WAProto/parts/MessageAddOn.part +305 -0
- package/WAProto/parts/MessageAddOnContextInfo.part +113 -0
- package/WAProto/parts/MessageAssociation.part +235 -0
- package/WAProto/parts/MessageContextInfo.part +451 -0
- package/WAProto/parts/MessageKey.part +138 -0
- package/WAProto/parts/MessageSecretMessage.part +125 -0
- package/WAProto/parts/Money.part +129 -0
- package/WAProto/parts/MsgOpaqueData.part +1732 -0
- package/WAProto/parts/MsgRowOpaqueData.part +104 -0
- package/WAProto/parts/MutationProps.part +89 -0
- package/WAProto/parts/NoiseCertificate.part +277 -0
- package/WAProto/parts/NotificationMessageInfo.part +152 -0
- package/WAProto/parts/NotificationSettings.part +176 -0
- package/WAProto/parts/PairingRequest.part +128 -0
- package/WAProto/parts/PastParticipant.part +148 -0
- package/WAProto/parts/PastParticipants.part +112 -0
- package/WAProto/parts/PatchDebugData.part +358 -0
- package/WAProto/parts/PaymentBackground.part +460 -0
- package/WAProto/parts/PaymentInfo.part +602 -0
- package/WAProto/parts/PhoneNumberToLIDMapping.part +100 -0
- package/WAProto/parts/PhotoChange.part +125 -0
- package/WAProto/parts/PinInChat.part +205 -0
- package/WAProto/parts/Point.part +138 -0
- package/WAProto/parts/PollAdditionalMetadata.part +216 -0
- package/WAProto/parts/PollEncValue.part +106 -0
- package/WAProto/parts/PollUpdate.part +202 -0
- package/WAProto/parts/PreKeyRecordStructure.part +125 -0
- package/WAProto/parts/PreKeySignalMessage.part +185 -0
- package/WAProto/parts/PremiumMessageInfo.part +81 -0
- package/WAProto/parts/PrimaryEphemeralIdentity.part +106 -0
- package/WAProto/parts/PrivacySystemMessage.part +6 -0
- package/WAProto/parts/ProcessedVideo.part +266 -0
- package/WAProto/parts/ProloguePayload.part +105 -0
- package/WAProto/parts/Pushname.part +100 -0
- package/WAProto/parts/QuarantinedMessage.part +103 -0
- package/WAProto/parts/Reaction.part +169 -0
- package/WAProto/parts/RecentEmojiWeight.part +100 -0
- package/WAProto/parts/RecordStructure.part +114 -0
- package/WAProto/parts/Reportable.part +138 -0
- package/WAProto/parts/ReportingTokenInfo.part +84 -0
- package/WAProto/parts/ScheduledMessageMetadata.part +132 -0
- package/WAProto/parts/SenderKeyDistributionMessage.part +144 -0
- package/WAProto/parts/SenderKeyMessage.part +122 -0
- package/WAProto/parts/SenderKeyRecordStructure.part +92 -0
- package/WAProto/parts/SenderKeyStateStructure.part +469 -0
- package/WAProto/parts/ServerErrorReceipt.part +81 -0
- package/WAProto/parts/SessionStructure.part +1087 -0
- package/WAProto/parts/SessionTransparencyMetadata.part +132 -0
- package/WAProto/parts/SessionTransparencyType.part +5 -0
- package/WAProto/parts/SignalMessage.part +144 -0
- package/WAProto/parts/SignedPreKeyRecordStructure.part +176 -0
- package/WAProto/parts/StatusAttribution.part +1235 -0
- package/WAProto/parts/StatusMentionMessage.part +83 -0
- package/WAProto/parts/StatusPSA.part +121 -0
- package/WAProto/parts/StickerMetadata.part +357 -0
- package/WAProto/parts/SyncActionData.part +146 -0
- package/WAProto/parts/SyncActionValue.part +12959 -0
- package/WAProto/parts/SyncdIndex.part +84 -0
- package/WAProto/parts/SyncdMutation.part +121 -0
- package/WAProto/parts/SyncdMutations.part +92 -0
- package/WAProto/parts/SyncdPatch.part +262 -0
- package/WAProto/parts/SyncdRecord.part +125 -0
- package/WAProto/parts/SyncdSnapshot.part +157 -0
- package/WAProto/parts/SyncdValue.part +84 -0
- package/WAProto/parts/SyncdVersion.part +91 -0
- package/WAProto/parts/TapLinkAction.part +100 -0
- package/WAProto/parts/TemplateButton.part +449 -0
- package/WAProto/parts/ThreadID.part +126 -0
- package/WAProto/parts/UrlTrackingMap.part +231 -0
- package/WAProto/parts/UserPassword.part +399 -0
- package/WAProto/parts/UserReceipt.part +221 -0
- package/WAProto/parts/VerifiedNameCertificate.part +318 -0
- package/WAProto/parts/WallpaperSettings.part +119 -0
- package/WAProto/parts/WebFeatures.part +1870 -0
- package/WAProto/parts/WebLinkRenderConfig.part +5 -0
- package/WAProto/parts/WebMessageInfo.part +2851 -0
- package/WAProto/parts/WebNotificationsInfo.part +160 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1472 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function Conversation(p) {
|
|
3
|
+
this.messages = [];
|
|
4
|
+
this.participant = [];
|
|
5
|
+
if (p)
|
|
6
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
7
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
8
|
+
this[ks[i]] = p[ks[i]];
|
|
9
|
+
}
|
|
10
|
+
Conversation.prototype.id = "";
|
|
11
|
+
Conversation.prototype.messages = $util.emptyArray;
|
|
12
|
+
Conversation.prototype.newJid = null;
|
|
13
|
+
Conversation.prototype.oldJid = null;
|
|
14
|
+
Conversation.prototype.lastMsgTimestamp = null;
|
|
15
|
+
Conversation.prototype.unreadCount = null;
|
|
16
|
+
Conversation.prototype.readOnly = null;
|
|
17
|
+
Conversation.prototype.endOfHistoryTransfer = null;
|
|
18
|
+
Conversation.prototype.ephemeralExpiration = null;
|
|
19
|
+
Conversation.prototype.ephemeralSettingTimestamp = null;
|
|
20
|
+
Conversation.prototype.endOfHistoryTransferType = null;
|
|
21
|
+
Conversation.prototype.conversationTimestamp = null;
|
|
22
|
+
Conversation.prototype.name = null;
|
|
23
|
+
Conversation.prototype.pHash = null;
|
|
24
|
+
Conversation.prototype.notSpam = null;
|
|
25
|
+
Conversation.prototype.archived = null;
|
|
26
|
+
Conversation.prototype.disappearingMode = null;
|
|
27
|
+
Conversation.prototype.unreadMentionCount = null;
|
|
28
|
+
Conversation.prototype.markedAsUnread = null;
|
|
29
|
+
Conversation.prototype.participant = $util.emptyArray;
|
|
30
|
+
Conversation.prototype.tcToken = null;
|
|
31
|
+
Conversation.prototype.tcTokenTimestamp = null;
|
|
32
|
+
Conversation.prototype.contactPrimaryIdentityKey = null;
|
|
33
|
+
Conversation.prototype.pinned = null;
|
|
34
|
+
Conversation.prototype.muteEndTime = null;
|
|
35
|
+
Conversation.prototype.wallpaper = null;
|
|
36
|
+
Conversation.prototype.mediaVisibility = null;
|
|
37
|
+
Conversation.prototype.tcTokenSenderTimestamp = null;
|
|
38
|
+
Conversation.prototype.suspended = null;
|
|
39
|
+
Conversation.prototype.terminated = null;
|
|
40
|
+
Conversation.prototype.createdAt = null;
|
|
41
|
+
Conversation.prototype.createdBy = null;
|
|
42
|
+
Conversation.prototype.description = null;
|
|
43
|
+
Conversation.prototype.support = null;
|
|
44
|
+
Conversation.prototype.isParentGroup = null;
|
|
45
|
+
Conversation.prototype.parentGroupId = null;
|
|
46
|
+
Conversation.prototype.isDefaultSubgroup = null;
|
|
47
|
+
Conversation.prototype.displayName = null;
|
|
48
|
+
Conversation.prototype.pnJid = null;
|
|
49
|
+
Conversation.prototype.shareOwnPn = null;
|
|
50
|
+
Conversation.prototype.pnhDuplicateLidThread = null;
|
|
51
|
+
Conversation.prototype.lidJid = null;
|
|
52
|
+
Conversation.prototype.username = null;
|
|
53
|
+
Conversation.prototype.lidOriginType = null;
|
|
54
|
+
Conversation.prototype.commentsCount = null;
|
|
55
|
+
Conversation.prototype.locked = null;
|
|
56
|
+
Conversation.prototype.systemMessageToInsert = null;
|
|
57
|
+
Conversation.prototype.capiCreatedGroup = null;
|
|
58
|
+
Conversation.prototype.accountLid = null;
|
|
59
|
+
Conversation.prototype.limitSharing = null;
|
|
60
|
+
Conversation.prototype.limitSharingSettingTimestamp = null;
|
|
61
|
+
Conversation.prototype.limitSharingTrigger = null;
|
|
62
|
+
Conversation.prototype.limitSharingInitiatedByMe = null;
|
|
63
|
+
Conversation.prototype.maibaAiThreadEnabled = null;
|
|
64
|
+
Conversation.prototype.isMarketingMessageThread = null;
|
|
65
|
+
Conversation.prototype.isSenderNewAccount = null;
|
|
66
|
+
Conversation.prototype.afterReadDuration = null;
|
|
67
|
+
Conversation.prototype.isSenderSuspicious = null;
|
|
68
|
+
Conversation.prototype.appealStatus = null;
|
|
69
|
+
Conversation.prototype.appealUpdateTime = null;
|
|
70
|
+
Conversation.prototype.authAgentParentCompanyName = null;
|
|
71
|
+
Conversation.prototype.authAgentObaPhoneNumber = null;
|
|
72
|
+
let $oneOfFields;
|
|
73
|
+
Object.defineProperty(Conversation.prototype, "_newJid", {
|
|
74
|
+
get: $util.oneOfGetter($oneOfFields = ["newJid"]),
|
|
75
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(Conversation.prototype, "_oldJid", {
|
|
78
|
+
get: $util.oneOfGetter($oneOfFields = ["oldJid"]),
|
|
79
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(Conversation.prototype, "_lastMsgTimestamp", {
|
|
82
|
+
get: $util.oneOfGetter($oneOfFields = ["lastMsgTimestamp"]),
|
|
83
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(Conversation.prototype, "_unreadCount", {
|
|
86
|
+
get: $util.oneOfGetter($oneOfFields = ["unreadCount"]),
|
|
87
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(Conversation.prototype, "_readOnly", {
|
|
90
|
+
get: $util.oneOfGetter($oneOfFields = ["readOnly"]),
|
|
91
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(Conversation.prototype, "_endOfHistoryTransfer", {
|
|
94
|
+
get: $util.oneOfGetter($oneOfFields = ["endOfHistoryTransfer"]),
|
|
95
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(Conversation.prototype, "_ephemeralExpiration", {
|
|
98
|
+
get: $util.oneOfGetter($oneOfFields = ["ephemeralExpiration"]),
|
|
99
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(Conversation.prototype, "_ephemeralSettingTimestamp", {
|
|
102
|
+
get: $util.oneOfGetter($oneOfFields = ["ephemeralSettingTimestamp"]),
|
|
103
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(Conversation.prototype, "_endOfHistoryTransferType", {
|
|
106
|
+
get: $util.oneOfGetter($oneOfFields = ["endOfHistoryTransferType"]),
|
|
107
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(Conversation.prototype, "_conversationTimestamp", {
|
|
110
|
+
get: $util.oneOfGetter($oneOfFields = ["conversationTimestamp"]),
|
|
111
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(Conversation.prototype, "_name", {
|
|
114
|
+
get: $util.oneOfGetter($oneOfFields = ["name"]),
|
|
115
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(Conversation.prototype, "_pHash", {
|
|
118
|
+
get: $util.oneOfGetter($oneOfFields = ["pHash"]),
|
|
119
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(Conversation.prototype, "_notSpam", {
|
|
122
|
+
get: $util.oneOfGetter($oneOfFields = ["notSpam"]),
|
|
123
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(Conversation.prototype, "_archived", {
|
|
126
|
+
get: $util.oneOfGetter($oneOfFields = ["archived"]),
|
|
127
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(Conversation.prototype, "_disappearingMode", {
|
|
130
|
+
get: $util.oneOfGetter($oneOfFields = ["disappearingMode"]),
|
|
131
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(Conversation.prototype, "_unreadMentionCount", {
|
|
134
|
+
get: $util.oneOfGetter($oneOfFields = ["unreadMentionCount"]),
|
|
135
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(Conversation.prototype, "_markedAsUnread", {
|
|
138
|
+
get: $util.oneOfGetter($oneOfFields = ["markedAsUnread"]),
|
|
139
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(Conversation.prototype, "_tcToken", {
|
|
142
|
+
get: $util.oneOfGetter($oneOfFields = ["tcToken"]),
|
|
143
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
144
|
+
});
|
|
145
|
+
Object.defineProperty(Conversation.prototype, "_tcTokenTimestamp", {
|
|
146
|
+
get: $util.oneOfGetter($oneOfFields = ["tcTokenTimestamp"]),
|
|
147
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(Conversation.prototype, "_contactPrimaryIdentityKey", {
|
|
150
|
+
get: $util.oneOfGetter($oneOfFields = ["contactPrimaryIdentityKey"]),
|
|
151
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(Conversation.prototype, "_pinned", {
|
|
154
|
+
get: $util.oneOfGetter($oneOfFields = ["pinned"]),
|
|
155
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(Conversation.prototype, "_muteEndTime", {
|
|
158
|
+
get: $util.oneOfGetter($oneOfFields = ["muteEndTime"]),
|
|
159
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(Conversation.prototype, "_wallpaper", {
|
|
162
|
+
get: $util.oneOfGetter($oneOfFields = ["wallpaper"]),
|
|
163
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(Conversation.prototype, "_mediaVisibility", {
|
|
166
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaVisibility"]),
|
|
167
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
168
|
+
});
|
|
169
|
+
Object.defineProperty(Conversation.prototype, "_tcTokenSenderTimestamp", {
|
|
170
|
+
get: $util.oneOfGetter($oneOfFields = ["tcTokenSenderTimestamp"]),
|
|
171
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
172
|
+
});
|
|
173
|
+
Object.defineProperty(Conversation.prototype, "_suspended", {
|
|
174
|
+
get: $util.oneOfGetter($oneOfFields = ["suspended"]),
|
|
175
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(Conversation.prototype, "_terminated", {
|
|
178
|
+
get: $util.oneOfGetter($oneOfFields = ["terminated"]),
|
|
179
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(Conversation.prototype, "_createdAt", {
|
|
182
|
+
get: $util.oneOfGetter($oneOfFields = ["createdAt"]),
|
|
183
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(Conversation.prototype, "_createdBy", {
|
|
186
|
+
get: $util.oneOfGetter($oneOfFields = ["createdBy"]),
|
|
187
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(Conversation.prototype, "_description", {
|
|
190
|
+
get: $util.oneOfGetter($oneOfFields = ["description"]),
|
|
191
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(Conversation.prototype, "_support", {
|
|
194
|
+
get: $util.oneOfGetter($oneOfFields = ["support"]),
|
|
195
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(Conversation.prototype, "_isParentGroup", {
|
|
198
|
+
get: $util.oneOfGetter($oneOfFields = ["isParentGroup"]),
|
|
199
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(Conversation.prototype, "_parentGroupId", {
|
|
202
|
+
get: $util.oneOfGetter($oneOfFields = ["parentGroupId"]),
|
|
203
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(Conversation.prototype, "_isDefaultSubgroup", {
|
|
206
|
+
get: $util.oneOfGetter($oneOfFields = ["isDefaultSubgroup"]),
|
|
207
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(Conversation.prototype, "_displayName", {
|
|
210
|
+
get: $util.oneOfGetter($oneOfFields = ["displayName"]),
|
|
211
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(Conversation.prototype, "_pnJid", {
|
|
214
|
+
get: $util.oneOfGetter($oneOfFields = ["pnJid"]),
|
|
215
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
216
|
+
});
|
|
217
|
+
Object.defineProperty(Conversation.prototype, "_shareOwnPn", {
|
|
218
|
+
get: $util.oneOfGetter($oneOfFields = ["shareOwnPn"]),
|
|
219
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
220
|
+
});
|
|
221
|
+
Object.defineProperty(Conversation.prototype, "_pnhDuplicateLidThread", {
|
|
222
|
+
get: $util.oneOfGetter($oneOfFields = ["pnhDuplicateLidThread"]),
|
|
223
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(Conversation.prototype, "_lidJid", {
|
|
226
|
+
get: $util.oneOfGetter($oneOfFields = ["lidJid"]),
|
|
227
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(Conversation.prototype, "_username", {
|
|
230
|
+
get: $util.oneOfGetter($oneOfFields = ["username"]),
|
|
231
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(Conversation.prototype, "_lidOriginType", {
|
|
234
|
+
get: $util.oneOfGetter($oneOfFields = ["lidOriginType"]),
|
|
235
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(Conversation.prototype, "_commentsCount", {
|
|
238
|
+
get: $util.oneOfGetter($oneOfFields = ["commentsCount"]),
|
|
239
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(Conversation.prototype, "_locked", {
|
|
242
|
+
get: $util.oneOfGetter($oneOfFields = ["locked"]),
|
|
243
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
244
|
+
});
|
|
245
|
+
Object.defineProperty(Conversation.prototype, "_systemMessageToInsert", {
|
|
246
|
+
get: $util.oneOfGetter($oneOfFields = ["systemMessageToInsert"]),
|
|
247
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(Conversation.prototype, "_capiCreatedGroup", {
|
|
250
|
+
get: $util.oneOfGetter($oneOfFields = ["capiCreatedGroup"]),
|
|
251
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
252
|
+
});
|
|
253
|
+
Object.defineProperty(Conversation.prototype, "_accountLid", {
|
|
254
|
+
get: $util.oneOfGetter($oneOfFields = ["accountLid"]),
|
|
255
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
256
|
+
});
|
|
257
|
+
Object.defineProperty(Conversation.prototype, "_limitSharing", {
|
|
258
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharing"]),
|
|
259
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(Conversation.prototype, "_limitSharingSettingTimestamp", {
|
|
262
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharingSettingTimestamp"]),
|
|
263
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(Conversation.prototype, "_limitSharingTrigger", {
|
|
266
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharingTrigger"]),
|
|
267
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
268
|
+
});
|
|
269
|
+
Object.defineProperty(Conversation.prototype, "_limitSharingInitiatedByMe", {
|
|
270
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharingInitiatedByMe"]),
|
|
271
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
272
|
+
});
|
|
273
|
+
Object.defineProperty(Conversation.prototype, "_maibaAiThreadEnabled", {
|
|
274
|
+
get: $util.oneOfGetter($oneOfFields = ["maibaAiThreadEnabled"]),
|
|
275
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
276
|
+
});
|
|
277
|
+
Object.defineProperty(Conversation.prototype, "_isMarketingMessageThread", {
|
|
278
|
+
get: $util.oneOfGetter($oneOfFields = ["isMarketingMessageThread"]),
|
|
279
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
280
|
+
});
|
|
281
|
+
Object.defineProperty(Conversation.prototype, "_isSenderNewAccount", {
|
|
282
|
+
get: $util.oneOfGetter($oneOfFields = ["isSenderNewAccount"]),
|
|
283
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
284
|
+
});
|
|
285
|
+
Object.defineProperty(Conversation.prototype, "_afterReadDuration", {
|
|
286
|
+
get: $util.oneOfGetter($oneOfFields = ["afterReadDuration"]),
|
|
287
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
288
|
+
});
|
|
289
|
+
Object.defineProperty(Conversation.prototype, "_isSenderSuspicious", {
|
|
290
|
+
get: $util.oneOfGetter($oneOfFields = ["isSenderSuspicious"]),
|
|
291
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
292
|
+
});
|
|
293
|
+
Object.defineProperty(Conversation.prototype, "_appealStatus", {
|
|
294
|
+
get: $util.oneOfGetter($oneOfFields = ["appealStatus"]),
|
|
295
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
296
|
+
});
|
|
297
|
+
Object.defineProperty(Conversation.prototype, "_appealUpdateTime", {
|
|
298
|
+
get: $util.oneOfGetter($oneOfFields = ["appealUpdateTime"]),
|
|
299
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
300
|
+
});
|
|
301
|
+
Object.defineProperty(Conversation.prototype, "_authAgentParentCompanyName", {
|
|
302
|
+
get: $util.oneOfGetter($oneOfFields = ["authAgentParentCompanyName"]),
|
|
303
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
304
|
+
});
|
|
305
|
+
Object.defineProperty(Conversation.prototype, "_authAgentObaPhoneNumber", {
|
|
306
|
+
get: $util.oneOfGetter($oneOfFields = ["authAgentObaPhoneNumber"]),
|
|
307
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
308
|
+
});
|
|
309
|
+
Conversation.create = function create(properties) {
|
|
310
|
+
return new Conversation(properties);
|
|
311
|
+
};
|
|
312
|
+
Conversation.encode = function encode(m, w) {
|
|
313
|
+
if (!w)
|
|
314
|
+
w = $Writer.create();
|
|
315
|
+
if (m.id != null && Object.hasOwnProperty.call(m, "id"))
|
|
316
|
+
w.uint32(10).string(m.id);
|
|
317
|
+
if (m.messages != null && m.messages.length) {
|
|
318
|
+
for (var i = 0; i < m.messages.length; ++i)
|
|
319
|
+
$root.proto.HistorySyncMsg.encode(m.messages[i], w.uint32(18).fork()).ldelim();
|
|
320
|
+
}
|
|
321
|
+
if (m.newJid != null && Object.hasOwnProperty.call(m, "newJid"))
|
|
322
|
+
w.uint32(26).string(m.newJid);
|
|
323
|
+
if (m.oldJid != null && Object.hasOwnProperty.call(m, "oldJid"))
|
|
324
|
+
w.uint32(34).string(m.oldJid);
|
|
325
|
+
if (m.lastMsgTimestamp != null && Object.hasOwnProperty.call(m, "lastMsgTimestamp"))
|
|
326
|
+
w.uint32(40).uint64(m.lastMsgTimestamp);
|
|
327
|
+
if (m.unreadCount != null && Object.hasOwnProperty.call(m, "unreadCount"))
|
|
328
|
+
w.uint32(48).uint32(m.unreadCount);
|
|
329
|
+
if (m.readOnly != null && Object.hasOwnProperty.call(m, "readOnly"))
|
|
330
|
+
w.uint32(56).bool(m.readOnly);
|
|
331
|
+
if (m.endOfHistoryTransfer != null && Object.hasOwnProperty.call(m, "endOfHistoryTransfer"))
|
|
332
|
+
w.uint32(64).bool(m.endOfHistoryTransfer);
|
|
333
|
+
if (m.ephemeralExpiration != null && Object.hasOwnProperty.call(m, "ephemeralExpiration"))
|
|
334
|
+
w.uint32(72).uint32(m.ephemeralExpiration);
|
|
335
|
+
if (m.ephemeralSettingTimestamp != null && Object.hasOwnProperty.call(m, "ephemeralSettingTimestamp"))
|
|
336
|
+
w.uint32(80).int64(m.ephemeralSettingTimestamp);
|
|
337
|
+
if (m.endOfHistoryTransferType != null && Object.hasOwnProperty.call(m, "endOfHistoryTransferType"))
|
|
338
|
+
w.uint32(88).int32(m.endOfHistoryTransferType);
|
|
339
|
+
if (m.conversationTimestamp != null && Object.hasOwnProperty.call(m, "conversationTimestamp"))
|
|
340
|
+
w.uint32(96).uint64(m.conversationTimestamp);
|
|
341
|
+
if (m.name != null && Object.hasOwnProperty.call(m, "name"))
|
|
342
|
+
w.uint32(106).string(m.name);
|
|
343
|
+
if (m.pHash != null && Object.hasOwnProperty.call(m, "pHash"))
|
|
344
|
+
w.uint32(114).string(m.pHash);
|
|
345
|
+
if (m.notSpam != null && Object.hasOwnProperty.call(m, "notSpam"))
|
|
346
|
+
w.uint32(120).bool(m.notSpam);
|
|
347
|
+
if (m.archived != null && Object.hasOwnProperty.call(m, "archived"))
|
|
348
|
+
w.uint32(128).bool(m.archived);
|
|
349
|
+
if (m.disappearingMode != null && Object.hasOwnProperty.call(m, "disappearingMode"))
|
|
350
|
+
$root.proto.DisappearingMode.encode(m.disappearingMode, w.uint32(138).fork()).ldelim();
|
|
351
|
+
if (m.unreadMentionCount != null && Object.hasOwnProperty.call(m, "unreadMentionCount"))
|
|
352
|
+
w.uint32(144).uint32(m.unreadMentionCount);
|
|
353
|
+
if (m.markedAsUnread != null && Object.hasOwnProperty.call(m, "markedAsUnread"))
|
|
354
|
+
w.uint32(152).bool(m.markedAsUnread);
|
|
355
|
+
if (m.participant != null && m.participant.length) {
|
|
356
|
+
for (var i = 0; i < m.participant.length; ++i)
|
|
357
|
+
$root.proto.GroupParticipant.encode(m.participant[i], w.uint32(162).fork()).ldelim();
|
|
358
|
+
}
|
|
359
|
+
if (m.tcToken != null && Object.hasOwnProperty.call(m, "tcToken"))
|
|
360
|
+
w.uint32(170).bytes(m.tcToken);
|
|
361
|
+
if (m.tcTokenTimestamp != null && Object.hasOwnProperty.call(m, "tcTokenTimestamp"))
|
|
362
|
+
w.uint32(176).uint64(m.tcTokenTimestamp);
|
|
363
|
+
if (m.contactPrimaryIdentityKey != null && Object.hasOwnProperty.call(m, "contactPrimaryIdentityKey"))
|
|
364
|
+
w.uint32(186).bytes(m.contactPrimaryIdentityKey);
|
|
365
|
+
if (m.pinned != null && Object.hasOwnProperty.call(m, "pinned"))
|
|
366
|
+
w.uint32(192).uint32(m.pinned);
|
|
367
|
+
if (m.muteEndTime != null && Object.hasOwnProperty.call(m, "muteEndTime"))
|
|
368
|
+
w.uint32(200).uint64(m.muteEndTime);
|
|
369
|
+
if (m.wallpaper != null && Object.hasOwnProperty.call(m, "wallpaper"))
|
|
370
|
+
$root.proto.WallpaperSettings.encode(m.wallpaper, w.uint32(210).fork()).ldelim();
|
|
371
|
+
if (m.mediaVisibility != null && Object.hasOwnProperty.call(m, "mediaVisibility"))
|
|
372
|
+
w.uint32(216).int32(m.mediaVisibility);
|
|
373
|
+
if (m.tcTokenSenderTimestamp != null && Object.hasOwnProperty.call(m, "tcTokenSenderTimestamp"))
|
|
374
|
+
w.uint32(224).uint64(m.tcTokenSenderTimestamp);
|
|
375
|
+
if (m.suspended != null && Object.hasOwnProperty.call(m, "suspended"))
|
|
376
|
+
w.uint32(232).bool(m.suspended);
|
|
377
|
+
if (m.terminated != null && Object.hasOwnProperty.call(m, "terminated"))
|
|
378
|
+
w.uint32(240).bool(m.terminated);
|
|
379
|
+
if (m.createdAt != null && Object.hasOwnProperty.call(m, "createdAt"))
|
|
380
|
+
w.uint32(248).uint64(m.createdAt);
|
|
381
|
+
if (m.createdBy != null && Object.hasOwnProperty.call(m, "createdBy"))
|
|
382
|
+
w.uint32(258).string(m.createdBy);
|
|
383
|
+
if (m.description != null && Object.hasOwnProperty.call(m, "description"))
|
|
384
|
+
w.uint32(266).string(m.description);
|
|
385
|
+
if (m.support != null && Object.hasOwnProperty.call(m, "support"))
|
|
386
|
+
w.uint32(272).bool(m.support);
|
|
387
|
+
if (m.isParentGroup != null && Object.hasOwnProperty.call(m, "isParentGroup"))
|
|
388
|
+
w.uint32(280).bool(m.isParentGroup);
|
|
389
|
+
if (m.isDefaultSubgroup != null && Object.hasOwnProperty.call(m, "isDefaultSubgroup"))
|
|
390
|
+
w.uint32(288).bool(m.isDefaultSubgroup);
|
|
391
|
+
if (m.parentGroupId != null && Object.hasOwnProperty.call(m, "parentGroupId"))
|
|
392
|
+
w.uint32(298).string(m.parentGroupId);
|
|
393
|
+
if (m.displayName != null && Object.hasOwnProperty.call(m, "displayName"))
|
|
394
|
+
w.uint32(306).string(m.displayName);
|
|
395
|
+
if (m.pnJid != null && Object.hasOwnProperty.call(m, "pnJid"))
|
|
396
|
+
w.uint32(314).string(m.pnJid);
|
|
397
|
+
if (m.shareOwnPn != null && Object.hasOwnProperty.call(m, "shareOwnPn"))
|
|
398
|
+
w.uint32(320).bool(m.shareOwnPn);
|
|
399
|
+
if (m.pnhDuplicateLidThread != null && Object.hasOwnProperty.call(m, "pnhDuplicateLidThread"))
|
|
400
|
+
w.uint32(328).bool(m.pnhDuplicateLidThread);
|
|
401
|
+
if (m.lidJid != null && Object.hasOwnProperty.call(m, "lidJid"))
|
|
402
|
+
w.uint32(338).string(m.lidJid);
|
|
403
|
+
if (m.username != null && Object.hasOwnProperty.call(m, "username"))
|
|
404
|
+
w.uint32(346).string(m.username);
|
|
405
|
+
if (m.lidOriginType != null && Object.hasOwnProperty.call(m, "lidOriginType"))
|
|
406
|
+
w.uint32(354).string(m.lidOriginType);
|
|
407
|
+
if (m.commentsCount != null && Object.hasOwnProperty.call(m, "commentsCount"))
|
|
408
|
+
w.uint32(360).uint32(m.commentsCount);
|
|
409
|
+
if (m.locked != null && Object.hasOwnProperty.call(m, "locked"))
|
|
410
|
+
w.uint32(368).bool(m.locked);
|
|
411
|
+
if (m.systemMessageToInsert != null && Object.hasOwnProperty.call(m, "systemMessageToInsert"))
|
|
412
|
+
w.uint32(376).int32(m.systemMessageToInsert);
|
|
413
|
+
if (m.capiCreatedGroup != null && Object.hasOwnProperty.call(m, "capiCreatedGroup"))
|
|
414
|
+
w.uint32(384).bool(m.capiCreatedGroup);
|
|
415
|
+
if (m.accountLid != null && Object.hasOwnProperty.call(m, "accountLid"))
|
|
416
|
+
w.uint32(394).string(m.accountLid);
|
|
417
|
+
if (m.limitSharing != null && Object.hasOwnProperty.call(m, "limitSharing"))
|
|
418
|
+
w.uint32(400).bool(m.limitSharing);
|
|
419
|
+
if (m.limitSharingSettingTimestamp != null && Object.hasOwnProperty.call(m, "limitSharingSettingTimestamp"))
|
|
420
|
+
w.uint32(408).int64(m.limitSharingSettingTimestamp);
|
|
421
|
+
if (m.limitSharingTrigger != null && Object.hasOwnProperty.call(m, "limitSharingTrigger"))
|
|
422
|
+
w.uint32(416).int32(m.limitSharingTrigger);
|
|
423
|
+
if (m.limitSharingInitiatedByMe != null && Object.hasOwnProperty.call(m, "limitSharingInitiatedByMe"))
|
|
424
|
+
w.uint32(424).bool(m.limitSharingInitiatedByMe);
|
|
425
|
+
if (m.maibaAiThreadEnabled != null && Object.hasOwnProperty.call(m, "maibaAiThreadEnabled"))
|
|
426
|
+
w.uint32(432).bool(m.maibaAiThreadEnabled);
|
|
427
|
+
if (m.isMarketingMessageThread != null && Object.hasOwnProperty.call(m, "isMarketingMessageThread"))
|
|
428
|
+
w.uint32(440).bool(m.isMarketingMessageThread);
|
|
429
|
+
if (m.isSenderNewAccount != null && Object.hasOwnProperty.call(m, "isSenderNewAccount"))
|
|
430
|
+
w.uint32(448).bool(m.isSenderNewAccount);
|
|
431
|
+
if (m.afterReadDuration != null && Object.hasOwnProperty.call(m, "afterReadDuration"))
|
|
432
|
+
w.uint32(456).uint32(m.afterReadDuration);
|
|
433
|
+
if (m.isSenderSuspicious != null && Object.hasOwnProperty.call(m, "isSenderSuspicious"))
|
|
434
|
+
w.uint32(464).bool(m.isSenderSuspicious);
|
|
435
|
+
if (m.appealStatus != null && Object.hasOwnProperty.call(m, "appealStatus"))
|
|
436
|
+
w.uint32(472).int32(m.appealStatus);
|
|
437
|
+
if (m.appealUpdateTime != null && Object.hasOwnProperty.call(m, "appealUpdateTime"))
|
|
438
|
+
w.uint32(480).uint64(m.appealUpdateTime);
|
|
439
|
+
if (m.authAgentParentCompanyName != null && Object.hasOwnProperty.call(m, "authAgentParentCompanyName"))
|
|
440
|
+
w.uint32(490).string(m.authAgentParentCompanyName);
|
|
441
|
+
if (m.authAgentObaPhoneNumber != null && Object.hasOwnProperty.call(m, "authAgentObaPhoneNumber"))
|
|
442
|
+
w.uint32(498).string(m.authAgentObaPhoneNumber);
|
|
443
|
+
return w;
|
|
444
|
+
};
|
|
445
|
+
Conversation.decode = function decode(r, l, e, n) {
|
|
446
|
+
if (!(r instanceof $Reader))
|
|
447
|
+
r = $Reader.create(r);
|
|
448
|
+
if (n === undefined)
|
|
449
|
+
n = 0;
|
|
450
|
+
if (n > $Reader.recursionLimit)
|
|
451
|
+
throw Error("maximum nesting depth exceeded");
|
|
452
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Conversation();
|
|
453
|
+
while (r.pos < c) {
|
|
454
|
+
var t = r.uint32();
|
|
455
|
+
if (t === e)
|
|
456
|
+
break;
|
|
457
|
+
switch (t >>> 3) {
|
|
458
|
+
case 1: {
|
|
459
|
+
m.id = r.string();
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
case 2: {
|
|
463
|
+
if (!(m.messages && m.messages.length))
|
|
464
|
+
m.messages = [];
|
|
465
|
+
m.messages.push($root.proto.HistorySyncMsg.decode(r, r.uint32(), undefined, n + 1));
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
case 3: {
|
|
469
|
+
m.newJid = r.string();
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
case 4: {
|
|
473
|
+
m.oldJid = r.string();
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
case 5: {
|
|
477
|
+
m.lastMsgTimestamp = r.uint64();
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
case 6: {
|
|
481
|
+
m.unreadCount = r.uint32();
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
case 7: {
|
|
485
|
+
m.readOnly = r.bool();
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
case 8: {
|
|
489
|
+
m.endOfHistoryTransfer = r.bool();
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
case 9: {
|
|
493
|
+
m.ephemeralExpiration = r.uint32();
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
case 10: {
|
|
497
|
+
m.ephemeralSettingTimestamp = r.int64();
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
case 11: {
|
|
501
|
+
m.endOfHistoryTransferType = r.int32();
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
case 12: {
|
|
505
|
+
m.conversationTimestamp = r.uint64();
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
case 13: {
|
|
509
|
+
m.name = r.string();
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
case 14: {
|
|
513
|
+
m.pHash = r.string();
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
case 15: {
|
|
517
|
+
m.notSpam = r.bool();
|
|
518
|
+
break;
|
|
519
|
+
}
|
|
520
|
+
case 16: {
|
|
521
|
+
m.archived = r.bool();
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
case 17: {
|
|
525
|
+
m.disappearingMode = $root.proto.DisappearingMode.decode(r, r.uint32(), undefined, n + 1);
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
528
|
+
case 18: {
|
|
529
|
+
m.unreadMentionCount = r.uint32();
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
case 19: {
|
|
533
|
+
m.markedAsUnread = r.bool();
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
case 20: {
|
|
537
|
+
if (!(m.participant && m.participant.length))
|
|
538
|
+
m.participant = [];
|
|
539
|
+
m.participant.push($root.proto.GroupParticipant.decode(r, r.uint32(), undefined, n + 1));
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
case 21: {
|
|
543
|
+
m.tcToken = r.bytes();
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
case 22: {
|
|
547
|
+
m.tcTokenTimestamp = r.uint64();
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
case 23: {
|
|
551
|
+
m.contactPrimaryIdentityKey = r.bytes();
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
case 24: {
|
|
555
|
+
m.pinned = r.uint32();
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
case 25: {
|
|
559
|
+
m.muteEndTime = r.uint64();
|
|
560
|
+
break;
|
|
561
|
+
}
|
|
562
|
+
case 26: {
|
|
563
|
+
m.wallpaper = $root.proto.WallpaperSettings.decode(r, r.uint32(), undefined, n + 1);
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
case 27: {
|
|
567
|
+
m.mediaVisibility = r.int32();
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
case 28: {
|
|
571
|
+
m.tcTokenSenderTimestamp = r.uint64();
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
case 29: {
|
|
575
|
+
m.suspended = r.bool();
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
case 30: {
|
|
579
|
+
m.terminated = r.bool();
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
case 31: {
|
|
583
|
+
m.createdAt = r.uint64();
|
|
584
|
+
break;
|
|
585
|
+
}
|
|
586
|
+
case 32: {
|
|
587
|
+
m.createdBy = r.string();
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
case 33: {
|
|
591
|
+
m.description = r.string();
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
case 34: {
|
|
595
|
+
m.support = r.bool();
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
case 35: {
|
|
599
|
+
m.isParentGroup = r.bool();
|
|
600
|
+
break;
|
|
601
|
+
}
|
|
602
|
+
case 37: {
|
|
603
|
+
m.parentGroupId = r.string();
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
case 36: {
|
|
607
|
+
m.isDefaultSubgroup = r.bool();
|
|
608
|
+
break;
|
|
609
|
+
}
|
|
610
|
+
case 38: {
|
|
611
|
+
m.displayName = r.string();
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
case 39: {
|
|
615
|
+
m.pnJid = r.string();
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
case 40: {
|
|
619
|
+
m.shareOwnPn = r.bool();
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
case 41: {
|
|
623
|
+
m.pnhDuplicateLidThread = r.bool();
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
case 42: {
|
|
627
|
+
m.lidJid = r.string();
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
630
|
+
case 43: {
|
|
631
|
+
m.username = r.string();
|
|
632
|
+
break;
|
|
633
|
+
}
|
|
634
|
+
case 44: {
|
|
635
|
+
m.lidOriginType = r.string();
|
|
636
|
+
break;
|
|
637
|
+
}
|
|
638
|
+
case 45: {
|
|
639
|
+
m.commentsCount = r.uint32();
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
case 46: {
|
|
643
|
+
m.locked = r.bool();
|
|
644
|
+
break;
|
|
645
|
+
}
|
|
646
|
+
case 47: {
|
|
647
|
+
m.systemMessageToInsert = r.int32();
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
case 48: {
|
|
651
|
+
m.capiCreatedGroup = r.bool();
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
case 49: {
|
|
655
|
+
m.accountLid = r.string();
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
658
|
+
case 50: {
|
|
659
|
+
m.limitSharing = r.bool();
|
|
660
|
+
break;
|
|
661
|
+
}
|
|
662
|
+
case 51: {
|
|
663
|
+
m.limitSharingSettingTimestamp = r.int64();
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
case 52: {
|
|
667
|
+
m.limitSharingTrigger = r.int32();
|
|
668
|
+
break;
|
|
669
|
+
}
|
|
670
|
+
case 53: {
|
|
671
|
+
m.limitSharingInitiatedByMe = r.bool();
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
case 54: {
|
|
675
|
+
m.maibaAiThreadEnabled = r.bool();
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
case 55: {
|
|
679
|
+
m.isMarketingMessageThread = r.bool();
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
case 56: {
|
|
683
|
+
m.isSenderNewAccount = r.bool();
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
case 57: {
|
|
687
|
+
m.afterReadDuration = r.uint32();
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
case 58: {
|
|
691
|
+
m.isSenderSuspicious = r.bool();
|
|
692
|
+
break;
|
|
693
|
+
}
|
|
694
|
+
case 59: {
|
|
695
|
+
m.appealStatus = r.int32();
|
|
696
|
+
break;
|
|
697
|
+
}
|
|
698
|
+
case 60: {
|
|
699
|
+
m.appealUpdateTime = r.uint64();
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
case 61: {
|
|
703
|
+
m.authAgentParentCompanyName = r.string();
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
case 62: {
|
|
707
|
+
m.authAgentObaPhoneNumber = r.string();
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
default:
|
|
711
|
+
r.skipType(t & 7, n);
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
return m;
|
|
716
|
+
};
|
|
717
|
+
Conversation.fromObject = function fromObject(d, n) {
|
|
718
|
+
if (d instanceof $root.proto.Conversation)
|
|
719
|
+
return d;
|
|
720
|
+
if (n === undefined)
|
|
721
|
+
n = 0;
|
|
722
|
+
if (n > $util.recursionLimit)
|
|
723
|
+
throw Error("maximum nesting depth exceeded");
|
|
724
|
+
var m = new $root.proto.Conversation();
|
|
725
|
+
if (d.id != null) {
|
|
726
|
+
m.id = String(d.id);
|
|
727
|
+
}
|
|
728
|
+
if (d.messages) {
|
|
729
|
+
if (!Array.isArray(d.messages))
|
|
730
|
+
throw TypeError(".proto.Conversation.messages: array expected");
|
|
731
|
+
m.messages = [];
|
|
732
|
+
for (var i = 0; i < d.messages.length; ++i) {
|
|
733
|
+
if (typeof d.messages[i] !== "object")
|
|
734
|
+
throw TypeError(".proto.Conversation.messages: object expected");
|
|
735
|
+
m.messages[i] = $root.proto.HistorySyncMsg.fromObject(d.messages[i], n + 1);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
if (d.newJid != null) {
|
|
739
|
+
m.newJid = String(d.newJid);
|
|
740
|
+
}
|
|
741
|
+
if (d.oldJid != null) {
|
|
742
|
+
m.oldJid = String(d.oldJid);
|
|
743
|
+
}
|
|
744
|
+
if (d.lastMsgTimestamp != null) {
|
|
745
|
+
if ($util.Long)
|
|
746
|
+
(m.lastMsgTimestamp = $util.Long.fromValue(d.lastMsgTimestamp)).unsigned = true;
|
|
747
|
+
else if (typeof d.lastMsgTimestamp === "string")
|
|
748
|
+
m.lastMsgTimestamp = parseInt(d.lastMsgTimestamp, 10);
|
|
749
|
+
else if (typeof d.lastMsgTimestamp === "number")
|
|
750
|
+
m.lastMsgTimestamp = d.lastMsgTimestamp;
|
|
751
|
+
else if (typeof d.lastMsgTimestamp === "object")
|
|
752
|
+
m.lastMsgTimestamp = new $util.LongBits(d.lastMsgTimestamp.low >>> 0, d.lastMsgTimestamp.high >>> 0).toNumber(true);
|
|
753
|
+
}
|
|
754
|
+
if (d.unreadCount != null) {
|
|
755
|
+
m.unreadCount = d.unreadCount >>> 0;
|
|
756
|
+
}
|
|
757
|
+
if (d.readOnly != null) {
|
|
758
|
+
m.readOnly = Boolean(d.readOnly);
|
|
759
|
+
}
|
|
760
|
+
if (d.endOfHistoryTransfer != null) {
|
|
761
|
+
m.endOfHistoryTransfer = Boolean(d.endOfHistoryTransfer);
|
|
762
|
+
}
|
|
763
|
+
if (d.ephemeralExpiration != null) {
|
|
764
|
+
m.ephemeralExpiration = d.ephemeralExpiration >>> 0;
|
|
765
|
+
}
|
|
766
|
+
if (d.ephemeralSettingTimestamp != null) {
|
|
767
|
+
if ($util.Long)
|
|
768
|
+
(m.ephemeralSettingTimestamp = $util.Long.fromValue(d.ephemeralSettingTimestamp)).unsigned = false;
|
|
769
|
+
else if (typeof d.ephemeralSettingTimestamp === "string")
|
|
770
|
+
m.ephemeralSettingTimestamp = parseInt(d.ephemeralSettingTimestamp, 10);
|
|
771
|
+
else if (typeof d.ephemeralSettingTimestamp === "number")
|
|
772
|
+
m.ephemeralSettingTimestamp = d.ephemeralSettingTimestamp;
|
|
773
|
+
else if (typeof d.ephemeralSettingTimestamp === "object")
|
|
774
|
+
m.ephemeralSettingTimestamp = new $util.LongBits(d.ephemeralSettingTimestamp.low >>> 0, d.ephemeralSettingTimestamp.high >>> 0).toNumber();
|
|
775
|
+
}
|
|
776
|
+
switch (d.endOfHistoryTransferType) {
|
|
777
|
+
default:
|
|
778
|
+
if (typeof d.endOfHistoryTransferType === "number") {
|
|
779
|
+
m.endOfHistoryTransferType = d.endOfHistoryTransferType;
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
break;
|
|
783
|
+
case "COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY":
|
|
784
|
+
case 0:
|
|
785
|
+
m.endOfHistoryTransferType = 0;
|
|
786
|
+
break;
|
|
787
|
+
case "COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY":
|
|
788
|
+
case 1:
|
|
789
|
+
m.endOfHistoryTransferType = 1;
|
|
790
|
+
break;
|
|
791
|
+
case "COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY":
|
|
792
|
+
case 2:
|
|
793
|
+
m.endOfHistoryTransferType = 2;
|
|
794
|
+
break;
|
|
795
|
+
case "COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS":
|
|
796
|
+
case 3:
|
|
797
|
+
m.endOfHistoryTransferType = 3;
|
|
798
|
+
break;
|
|
799
|
+
}
|
|
800
|
+
if (d.conversationTimestamp != null) {
|
|
801
|
+
if ($util.Long)
|
|
802
|
+
(m.conversationTimestamp = $util.Long.fromValue(d.conversationTimestamp)).unsigned = true;
|
|
803
|
+
else if (typeof d.conversationTimestamp === "string")
|
|
804
|
+
m.conversationTimestamp = parseInt(d.conversationTimestamp, 10);
|
|
805
|
+
else if (typeof d.conversationTimestamp === "number")
|
|
806
|
+
m.conversationTimestamp = d.conversationTimestamp;
|
|
807
|
+
else if (typeof d.conversationTimestamp === "object")
|
|
808
|
+
m.conversationTimestamp = new $util.LongBits(d.conversationTimestamp.low >>> 0, d.conversationTimestamp.high >>> 0).toNumber(true);
|
|
809
|
+
}
|
|
810
|
+
if (d.name != null) {
|
|
811
|
+
m.name = String(d.name);
|
|
812
|
+
}
|
|
813
|
+
if (d.pHash != null) {
|
|
814
|
+
m.pHash = String(d.pHash);
|
|
815
|
+
}
|
|
816
|
+
if (d.notSpam != null) {
|
|
817
|
+
m.notSpam = Boolean(d.notSpam);
|
|
818
|
+
}
|
|
819
|
+
if (d.archived != null) {
|
|
820
|
+
m.archived = Boolean(d.archived);
|
|
821
|
+
}
|
|
822
|
+
if (d.disappearingMode != null) {
|
|
823
|
+
if (typeof d.disappearingMode !== "object")
|
|
824
|
+
throw TypeError(".proto.Conversation.disappearingMode: object expected");
|
|
825
|
+
m.disappearingMode = $root.proto.DisappearingMode.fromObject(d.disappearingMode, n + 1);
|
|
826
|
+
}
|
|
827
|
+
if (d.unreadMentionCount != null) {
|
|
828
|
+
m.unreadMentionCount = d.unreadMentionCount >>> 0;
|
|
829
|
+
}
|
|
830
|
+
if (d.markedAsUnread != null) {
|
|
831
|
+
m.markedAsUnread = Boolean(d.markedAsUnread);
|
|
832
|
+
}
|
|
833
|
+
if (d.participant) {
|
|
834
|
+
if (!Array.isArray(d.participant))
|
|
835
|
+
throw TypeError(".proto.Conversation.participant: array expected");
|
|
836
|
+
m.participant = [];
|
|
837
|
+
for (var i = 0; i < d.participant.length; ++i) {
|
|
838
|
+
if (typeof d.participant[i] !== "object")
|
|
839
|
+
throw TypeError(".proto.Conversation.participant: object expected");
|
|
840
|
+
m.participant[i] = $root.proto.GroupParticipant.fromObject(d.participant[i], n + 1);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
if (d.tcToken != null) {
|
|
844
|
+
if (typeof d.tcToken === "string")
|
|
845
|
+
$util.base64.decode(d.tcToken, m.tcToken = $util.newBuffer($util.base64.length(d.tcToken)), 0);
|
|
846
|
+
else if (d.tcToken.length >= 0)
|
|
847
|
+
m.tcToken = d.tcToken;
|
|
848
|
+
}
|
|
849
|
+
if (d.tcTokenTimestamp != null) {
|
|
850
|
+
if ($util.Long)
|
|
851
|
+
(m.tcTokenTimestamp = $util.Long.fromValue(d.tcTokenTimestamp)).unsigned = true;
|
|
852
|
+
else if (typeof d.tcTokenTimestamp === "string")
|
|
853
|
+
m.tcTokenTimestamp = parseInt(d.tcTokenTimestamp, 10);
|
|
854
|
+
else if (typeof d.tcTokenTimestamp === "number")
|
|
855
|
+
m.tcTokenTimestamp = d.tcTokenTimestamp;
|
|
856
|
+
else if (typeof d.tcTokenTimestamp === "object")
|
|
857
|
+
m.tcTokenTimestamp = new $util.LongBits(d.tcTokenTimestamp.low >>> 0, d.tcTokenTimestamp.high >>> 0).toNumber(true);
|
|
858
|
+
}
|
|
859
|
+
if (d.contactPrimaryIdentityKey != null) {
|
|
860
|
+
if (typeof d.contactPrimaryIdentityKey === "string")
|
|
861
|
+
$util.base64.decode(d.contactPrimaryIdentityKey, m.contactPrimaryIdentityKey = $util.newBuffer($util.base64.length(d.contactPrimaryIdentityKey)), 0);
|
|
862
|
+
else if (d.contactPrimaryIdentityKey.length >= 0)
|
|
863
|
+
m.contactPrimaryIdentityKey = d.contactPrimaryIdentityKey;
|
|
864
|
+
}
|
|
865
|
+
if (d.pinned != null) {
|
|
866
|
+
m.pinned = d.pinned >>> 0;
|
|
867
|
+
}
|
|
868
|
+
if (d.muteEndTime != null) {
|
|
869
|
+
if ($util.Long)
|
|
870
|
+
(m.muteEndTime = $util.Long.fromValue(d.muteEndTime)).unsigned = true;
|
|
871
|
+
else if (typeof d.muteEndTime === "string")
|
|
872
|
+
m.muteEndTime = parseInt(d.muteEndTime, 10);
|
|
873
|
+
else if (typeof d.muteEndTime === "number")
|
|
874
|
+
m.muteEndTime = d.muteEndTime;
|
|
875
|
+
else if (typeof d.muteEndTime === "object")
|
|
876
|
+
m.muteEndTime = new $util.LongBits(d.muteEndTime.low >>> 0, d.muteEndTime.high >>> 0).toNumber(true);
|
|
877
|
+
}
|
|
878
|
+
if (d.wallpaper != null) {
|
|
879
|
+
if (typeof d.wallpaper !== "object")
|
|
880
|
+
throw TypeError(".proto.Conversation.wallpaper: object expected");
|
|
881
|
+
m.wallpaper = $root.proto.WallpaperSettings.fromObject(d.wallpaper, n + 1);
|
|
882
|
+
}
|
|
883
|
+
switch (d.mediaVisibility) {
|
|
884
|
+
default:
|
|
885
|
+
if (typeof d.mediaVisibility === "number") {
|
|
886
|
+
m.mediaVisibility = d.mediaVisibility;
|
|
887
|
+
break;
|
|
888
|
+
}
|
|
889
|
+
break;
|
|
890
|
+
case "DEFAULT":
|
|
891
|
+
case 0:
|
|
892
|
+
m.mediaVisibility = 0;
|
|
893
|
+
break;
|
|
894
|
+
case "OFF":
|
|
895
|
+
case 1:
|
|
896
|
+
m.mediaVisibility = 1;
|
|
897
|
+
break;
|
|
898
|
+
case "ON":
|
|
899
|
+
case 2:
|
|
900
|
+
m.mediaVisibility = 2;
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
if (d.tcTokenSenderTimestamp != null) {
|
|
904
|
+
if ($util.Long)
|
|
905
|
+
(m.tcTokenSenderTimestamp = $util.Long.fromValue(d.tcTokenSenderTimestamp)).unsigned = true;
|
|
906
|
+
else if (typeof d.tcTokenSenderTimestamp === "string")
|
|
907
|
+
m.tcTokenSenderTimestamp = parseInt(d.tcTokenSenderTimestamp, 10);
|
|
908
|
+
else if (typeof d.tcTokenSenderTimestamp === "number")
|
|
909
|
+
m.tcTokenSenderTimestamp = d.tcTokenSenderTimestamp;
|
|
910
|
+
else if (typeof d.tcTokenSenderTimestamp === "object")
|
|
911
|
+
m.tcTokenSenderTimestamp = new $util.LongBits(d.tcTokenSenderTimestamp.low >>> 0, d.tcTokenSenderTimestamp.high >>> 0).toNumber(true);
|
|
912
|
+
}
|
|
913
|
+
if (d.suspended != null) {
|
|
914
|
+
m.suspended = Boolean(d.suspended);
|
|
915
|
+
}
|
|
916
|
+
if (d.terminated != null) {
|
|
917
|
+
m.terminated = Boolean(d.terminated);
|
|
918
|
+
}
|
|
919
|
+
if (d.createdAt != null) {
|
|
920
|
+
if ($util.Long)
|
|
921
|
+
(m.createdAt = $util.Long.fromValue(d.createdAt)).unsigned = true;
|
|
922
|
+
else if (typeof d.createdAt === "string")
|
|
923
|
+
m.createdAt = parseInt(d.createdAt, 10);
|
|
924
|
+
else if (typeof d.createdAt === "number")
|
|
925
|
+
m.createdAt = d.createdAt;
|
|
926
|
+
else if (typeof d.createdAt === "object")
|
|
927
|
+
m.createdAt = new $util.LongBits(d.createdAt.low >>> 0, d.createdAt.high >>> 0).toNumber(true);
|
|
928
|
+
}
|
|
929
|
+
if (d.createdBy != null) {
|
|
930
|
+
m.createdBy = String(d.createdBy);
|
|
931
|
+
}
|
|
932
|
+
if (d.description != null) {
|
|
933
|
+
m.description = String(d.description);
|
|
934
|
+
}
|
|
935
|
+
if (d.support != null) {
|
|
936
|
+
m.support = Boolean(d.support);
|
|
937
|
+
}
|
|
938
|
+
if (d.isParentGroup != null) {
|
|
939
|
+
m.isParentGroup = Boolean(d.isParentGroup);
|
|
940
|
+
}
|
|
941
|
+
if (d.parentGroupId != null) {
|
|
942
|
+
m.parentGroupId = String(d.parentGroupId);
|
|
943
|
+
}
|
|
944
|
+
if (d.isDefaultSubgroup != null) {
|
|
945
|
+
m.isDefaultSubgroup = Boolean(d.isDefaultSubgroup);
|
|
946
|
+
}
|
|
947
|
+
if (d.displayName != null) {
|
|
948
|
+
m.displayName = String(d.displayName);
|
|
949
|
+
}
|
|
950
|
+
if (d.pnJid != null) {
|
|
951
|
+
m.pnJid = String(d.pnJid);
|
|
952
|
+
}
|
|
953
|
+
if (d.shareOwnPn != null) {
|
|
954
|
+
m.shareOwnPn = Boolean(d.shareOwnPn);
|
|
955
|
+
}
|
|
956
|
+
if (d.pnhDuplicateLidThread != null) {
|
|
957
|
+
m.pnhDuplicateLidThread = Boolean(d.pnhDuplicateLidThread);
|
|
958
|
+
}
|
|
959
|
+
if (d.lidJid != null) {
|
|
960
|
+
m.lidJid = String(d.lidJid);
|
|
961
|
+
}
|
|
962
|
+
if (d.username != null) {
|
|
963
|
+
m.username = String(d.username);
|
|
964
|
+
}
|
|
965
|
+
if (d.lidOriginType != null) {
|
|
966
|
+
m.lidOriginType = String(d.lidOriginType);
|
|
967
|
+
}
|
|
968
|
+
if (d.commentsCount != null) {
|
|
969
|
+
m.commentsCount = d.commentsCount >>> 0;
|
|
970
|
+
}
|
|
971
|
+
if (d.locked != null) {
|
|
972
|
+
m.locked = Boolean(d.locked);
|
|
973
|
+
}
|
|
974
|
+
switch (d.systemMessageToInsert) {
|
|
975
|
+
default:
|
|
976
|
+
if (typeof d.systemMessageToInsert === "number") {
|
|
977
|
+
m.systemMessageToInsert = d.systemMessageToInsert;
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
break;
|
|
981
|
+
case "E2EE_MSG":
|
|
982
|
+
case 1:
|
|
983
|
+
m.systemMessageToInsert = 1;
|
|
984
|
+
break;
|
|
985
|
+
case "NE2EE_SELF":
|
|
986
|
+
case 2:
|
|
987
|
+
m.systemMessageToInsert = 2;
|
|
988
|
+
break;
|
|
989
|
+
case "NE2EE_OTHER":
|
|
990
|
+
case 3:
|
|
991
|
+
m.systemMessageToInsert = 3;
|
|
992
|
+
break;
|
|
993
|
+
}
|
|
994
|
+
if (d.capiCreatedGroup != null) {
|
|
995
|
+
m.capiCreatedGroup = Boolean(d.capiCreatedGroup);
|
|
996
|
+
}
|
|
997
|
+
if (d.accountLid != null) {
|
|
998
|
+
m.accountLid = String(d.accountLid);
|
|
999
|
+
}
|
|
1000
|
+
if (d.limitSharing != null) {
|
|
1001
|
+
m.limitSharing = Boolean(d.limitSharing);
|
|
1002
|
+
}
|
|
1003
|
+
if (d.limitSharingSettingTimestamp != null) {
|
|
1004
|
+
if ($util.Long)
|
|
1005
|
+
(m.limitSharingSettingTimestamp = $util.Long.fromValue(d.limitSharingSettingTimestamp)).unsigned = false;
|
|
1006
|
+
else if (typeof d.limitSharingSettingTimestamp === "string")
|
|
1007
|
+
m.limitSharingSettingTimestamp = parseInt(d.limitSharingSettingTimestamp, 10);
|
|
1008
|
+
else if (typeof d.limitSharingSettingTimestamp === "number")
|
|
1009
|
+
m.limitSharingSettingTimestamp = d.limitSharingSettingTimestamp;
|
|
1010
|
+
else if (typeof d.limitSharingSettingTimestamp === "object")
|
|
1011
|
+
m.limitSharingSettingTimestamp = new $util.LongBits(d.limitSharingSettingTimestamp.low >>> 0, d.limitSharingSettingTimestamp.high >>> 0).toNumber();
|
|
1012
|
+
}
|
|
1013
|
+
switch (d.limitSharingTrigger) {
|
|
1014
|
+
default:
|
|
1015
|
+
if (typeof d.limitSharingTrigger === "number") {
|
|
1016
|
+
m.limitSharingTrigger = d.limitSharingTrigger;
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
1019
|
+
break;
|
|
1020
|
+
case "UNKNOWN":
|
|
1021
|
+
case 0:
|
|
1022
|
+
m.limitSharingTrigger = 0;
|
|
1023
|
+
break;
|
|
1024
|
+
case "CHAT_SETTING":
|
|
1025
|
+
case 1:
|
|
1026
|
+
m.limitSharingTrigger = 1;
|
|
1027
|
+
break;
|
|
1028
|
+
case "BIZ_SUPPORTS_FB_HOSTING":
|
|
1029
|
+
case 2:
|
|
1030
|
+
m.limitSharingTrigger = 2;
|
|
1031
|
+
break;
|
|
1032
|
+
case "UNKNOWN_GROUP":
|
|
1033
|
+
case 3:
|
|
1034
|
+
m.limitSharingTrigger = 3;
|
|
1035
|
+
break;
|
|
1036
|
+
}
|
|
1037
|
+
if (d.limitSharingInitiatedByMe != null) {
|
|
1038
|
+
m.limitSharingInitiatedByMe = Boolean(d.limitSharingInitiatedByMe);
|
|
1039
|
+
}
|
|
1040
|
+
if (d.maibaAiThreadEnabled != null) {
|
|
1041
|
+
m.maibaAiThreadEnabled = Boolean(d.maibaAiThreadEnabled);
|
|
1042
|
+
}
|
|
1043
|
+
if (d.isMarketingMessageThread != null) {
|
|
1044
|
+
m.isMarketingMessageThread = Boolean(d.isMarketingMessageThread);
|
|
1045
|
+
}
|
|
1046
|
+
if (d.isSenderNewAccount != null) {
|
|
1047
|
+
m.isSenderNewAccount = Boolean(d.isSenderNewAccount);
|
|
1048
|
+
}
|
|
1049
|
+
if (d.afterReadDuration != null) {
|
|
1050
|
+
m.afterReadDuration = d.afterReadDuration >>> 0;
|
|
1051
|
+
}
|
|
1052
|
+
if (d.isSenderSuspicious != null) {
|
|
1053
|
+
m.isSenderSuspicious = Boolean(d.isSenderSuspicious);
|
|
1054
|
+
}
|
|
1055
|
+
switch (d.appealStatus) {
|
|
1056
|
+
default:
|
|
1057
|
+
if (typeof d.appealStatus === "number") {
|
|
1058
|
+
m.appealStatus = d.appealStatus;
|
|
1059
|
+
break;
|
|
1060
|
+
}
|
|
1061
|
+
break;
|
|
1062
|
+
case "NO_APPEAL":
|
|
1063
|
+
case 0:
|
|
1064
|
+
m.appealStatus = 0;
|
|
1065
|
+
break;
|
|
1066
|
+
case "APPEAL_IN_REVIEW":
|
|
1067
|
+
case 1:
|
|
1068
|
+
m.appealStatus = 1;
|
|
1069
|
+
break;
|
|
1070
|
+
case "APPEAL_APPROVED":
|
|
1071
|
+
case 2:
|
|
1072
|
+
m.appealStatus = 2;
|
|
1073
|
+
break;
|
|
1074
|
+
case "APPEAL_REJECTED":
|
|
1075
|
+
case 3:
|
|
1076
|
+
m.appealStatus = 3;
|
|
1077
|
+
break;
|
|
1078
|
+
}
|
|
1079
|
+
if (d.appealUpdateTime != null) {
|
|
1080
|
+
if ($util.Long)
|
|
1081
|
+
(m.appealUpdateTime = $util.Long.fromValue(d.appealUpdateTime)).unsigned = true;
|
|
1082
|
+
else if (typeof d.appealUpdateTime === "string")
|
|
1083
|
+
m.appealUpdateTime = parseInt(d.appealUpdateTime, 10);
|
|
1084
|
+
else if (typeof d.appealUpdateTime === "number")
|
|
1085
|
+
m.appealUpdateTime = d.appealUpdateTime;
|
|
1086
|
+
else if (typeof d.appealUpdateTime === "object")
|
|
1087
|
+
m.appealUpdateTime = new $util.LongBits(d.appealUpdateTime.low >>> 0, d.appealUpdateTime.high >>> 0).toNumber(true);
|
|
1088
|
+
}
|
|
1089
|
+
if (d.authAgentParentCompanyName != null) {
|
|
1090
|
+
m.authAgentParentCompanyName = String(d.authAgentParentCompanyName);
|
|
1091
|
+
}
|
|
1092
|
+
if (d.authAgentObaPhoneNumber != null) {
|
|
1093
|
+
m.authAgentObaPhoneNumber = String(d.authAgentObaPhoneNumber);
|
|
1094
|
+
}
|
|
1095
|
+
return m;
|
|
1096
|
+
};
|
|
1097
|
+
Conversation.toObject = function toObject(m, o) {
|
|
1098
|
+
if (!o)
|
|
1099
|
+
o = {};
|
|
1100
|
+
var d = {};
|
|
1101
|
+
if (o.arrays || o.defaults) {
|
|
1102
|
+
d.messages = [];
|
|
1103
|
+
d.participant = [];
|
|
1104
|
+
}
|
|
1105
|
+
if (o.defaults) {
|
|
1106
|
+
d.id = "";
|
|
1107
|
+
}
|
|
1108
|
+
if (m.id != null && m.hasOwnProperty("id")) {
|
|
1109
|
+
d.id = m.id;
|
|
1110
|
+
}
|
|
1111
|
+
if (m.messages && m.messages.length) {
|
|
1112
|
+
d.messages = [];
|
|
1113
|
+
for (var j = 0; j < m.messages.length; ++j) {
|
|
1114
|
+
d.messages[j] = $root.proto.HistorySyncMsg.toObject(m.messages[j], o);
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
if (m.newJid != null && m.hasOwnProperty("newJid")) {
|
|
1118
|
+
d.newJid = m.newJid;
|
|
1119
|
+
if (o.oneofs)
|
|
1120
|
+
d._newJid = "newJid";
|
|
1121
|
+
}
|
|
1122
|
+
if (m.oldJid != null && m.hasOwnProperty("oldJid")) {
|
|
1123
|
+
d.oldJid = m.oldJid;
|
|
1124
|
+
if (o.oneofs)
|
|
1125
|
+
d._oldJid = "oldJid";
|
|
1126
|
+
}
|
|
1127
|
+
if (m.lastMsgTimestamp != null && m.hasOwnProperty("lastMsgTimestamp")) {
|
|
1128
|
+
if (typeof m.lastMsgTimestamp === "number")
|
|
1129
|
+
d.lastMsgTimestamp = o.longs === String ? String(m.lastMsgTimestamp) : m.lastMsgTimestamp;
|
|
1130
|
+
else
|
|
1131
|
+
d.lastMsgTimestamp = o.longs === String ? longToString(m.lastMsgTimestamp, true) : o.longs === Number ? longToNumber(m.lastMsgTimestamp, true) : m.lastMsgTimestamp;
|
|
1132
|
+
if (o.oneofs)
|
|
1133
|
+
d._lastMsgTimestamp = "lastMsgTimestamp";
|
|
1134
|
+
}
|
|
1135
|
+
if (m.unreadCount != null && m.hasOwnProperty("unreadCount")) {
|
|
1136
|
+
d.unreadCount = m.unreadCount;
|
|
1137
|
+
if (o.oneofs)
|
|
1138
|
+
d._unreadCount = "unreadCount";
|
|
1139
|
+
}
|
|
1140
|
+
if (m.readOnly != null && m.hasOwnProperty("readOnly")) {
|
|
1141
|
+
d.readOnly = m.readOnly;
|
|
1142
|
+
if (o.oneofs)
|
|
1143
|
+
d._readOnly = "readOnly";
|
|
1144
|
+
}
|
|
1145
|
+
if (m.endOfHistoryTransfer != null && m.hasOwnProperty("endOfHistoryTransfer")) {
|
|
1146
|
+
d.endOfHistoryTransfer = m.endOfHistoryTransfer;
|
|
1147
|
+
if (o.oneofs)
|
|
1148
|
+
d._endOfHistoryTransfer = "endOfHistoryTransfer";
|
|
1149
|
+
}
|
|
1150
|
+
if (m.ephemeralExpiration != null && m.hasOwnProperty("ephemeralExpiration")) {
|
|
1151
|
+
d.ephemeralExpiration = m.ephemeralExpiration;
|
|
1152
|
+
if (o.oneofs)
|
|
1153
|
+
d._ephemeralExpiration = "ephemeralExpiration";
|
|
1154
|
+
}
|
|
1155
|
+
if (m.ephemeralSettingTimestamp != null && m.hasOwnProperty("ephemeralSettingTimestamp")) {
|
|
1156
|
+
if (typeof m.ephemeralSettingTimestamp === "number")
|
|
1157
|
+
d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
|
|
1158
|
+
else
|
|
1159
|
+
d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
|
|
1160
|
+
if (o.oneofs)
|
|
1161
|
+
d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
|
|
1162
|
+
}
|
|
1163
|
+
if (m.endOfHistoryTransferType != null && m.hasOwnProperty("endOfHistoryTransferType")) {
|
|
1164
|
+
d.endOfHistoryTransferType = o.enums === String ? $root.proto.Conversation.EndOfHistoryTransferType[m.endOfHistoryTransferType] === undefined ? m.endOfHistoryTransferType : $root.proto.Conversation.EndOfHistoryTransferType[m.endOfHistoryTransferType] : m.endOfHistoryTransferType;
|
|
1165
|
+
if (o.oneofs)
|
|
1166
|
+
d._endOfHistoryTransferType = "endOfHistoryTransferType";
|
|
1167
|
+
}
|
|
1168
|
+
if (m.conversationTimestamp != null && m.hasOwnProperty("conversationTimestamp")) {
|
|
1169
|
+
if (typeof m.conversationTimestamp === "number")
|
|
1170
|
+
d.conversationTimestamp = o.longs === String ? String(m.conversationTimestamp) : m.conversationTimestamp;
|
|
1171
|
+
else
|
|
1172
|
+
d.conversationTimestamp = o.longs === String ? longToString(m.conversationTimestamp, true) : o.longs === Number ? longToNumber(m.conversationTimestamp, true) : m.conversationTimestamp;
|
|
1173
|
+
if (o.oneofs)
|
|
1174
|
+
d._conversationTimestamp = "conversationTimestamp";
|
|
1175
|
+
}
|
|
1176
|
+
if (m.name != null && m.hasOwnProperty("name")) {
|
|
1177
|
+
d.name = m.name;
|
|
1178
|
+
if (o.oneofs)
|
|
1179
|
+
d._name = "name";
|
|
1180
|
+
}
|
|
1181
|
+
if (m.pHash != null && m.hasOwnProperty("pHash")) {
|
|
1182
|
+
d.pHash = m.pHash;
|
|
1183
|
+
if (o.oneofs)
|
|
1184
|
+
d._pHash = "pHash";
|
|
1185
|
+
}
|
|
1186
|
+
if (m.notSpam != null && m.hasOwnProperty("notSpam")) {
|
|
1187
|
+
d.notSpam = m.notSpam;
|
|
1188
|
+
if (o.oneofs)
|
|
1189
|
+
d._notSpam = "notSpam";
|
|
1190
|
+
}
|
|
1191
|
+
if (m.archived != null && m.hasOwnProperty("archived")) {
|
|
1192
|
+
d.archived = m.archived;
|
|
1193
|
+
if (o.oneofs)
|
|
1194
|
+
d._archived = "archived";
|
|
1195
|
+
}
|
|
1196
|
+
if (m.disappearingMode != null && m.hasOwnProperty("disappearingMode")) {
|
|
1197
|
+
d.disappearingMode = $root.proto.DisappearingMode.toObject(m.disappearingMode, o);
|
|
1198
|
+
if (o.oneofs)
|
|
1199
|
+
d._disappearingMode = "disappearingMode";
|
|
1200
|
+
}
|
|
1201
|
+
if (m.unreadMentionCount != null && m.hasOwnProperty("unreadMentionCount")) {
|
|
1202
|
+
d.unreadMentionCount = m.unreadMentionCount;
|
|
1203
|
+
if (o.oneofs)
|
|
1204
|
+
d._unreadMentionCount = "unreadMentionCount";
|
|
1205
|
+
}
|
|
1206
|
+
if (m.markedAsUnread != null && m.hasOwnProperty("markedAsUnread")) {
|
|
1207
|
+
d.markedAsUnread = m.markedAsUnread;
|
|
1208
|
+
if (o.oneofs)
|
|
1209
|
+
d._markedAsUnread = "markedAsUnread";
|
|
1210
|
+
}
|
|
1211
|
+
if (m.participant && m.participant.length) {
|
|
1212
|
+
d.participant = [];
|
|
1213
|
+
for (var j = 0; j < m.participant.length; ++j) {
|
|
1214
|
+
d.participant[j] = $root.proto.GroupParticipant.toObject(m.participant[j], o);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
if (m.tcToken != null && m.hasOwnProperty("tcToken")) {
|
|
1218
|
+
d.tcToken = o.bytes === String ? $util.base64.encode(m.tcToken, 0, m.tcToken.length) : o.bytes === Array ? Array.prototype.slice.call(m.tcToken) : m.tcToken;
|
|
1219
|
+
if (o.oneofs)
|
|
1220
|
+
d._tcToken = "tcToken";
|
|
1221
|
+
}
|
|
1222
|
+
if (m.tcTokenTimestamp != null && m.hasOwnProperty("tcTokenTimestamp")) {
|
|
1223
|
+
if (typeof m.tcTokenTimestamp === "number")
|
|
1224
|
+
d.tcTokenTimestamp = o.longs === String ? String(m.tcTokenTimestamp) : m.tcTokenTimestamp;
|
|
1225
|
+
else
|
|
1226
|
+
d.tcTokenTimestamp = o.longs === String ? longToString(m.tcTokenTimestamp, true) : o.longs === Number ? longToNumber(m.tcTokenTimestamp, true) : m.tcTokenTimestamp;
|
|
1227
|
+
if (o.oneofs)
|
|
1228
|
+
d._tcTokenTimestamp = "tcTokenTimestamp";
|
|
1229
|
+
}
|
|
1230
|
+
if (m.contactPrimaryIdentityKey != null && m.hasOwnProperty("contactPrimaryIdentityKey")) {
|
|
1231
|
+
d.contactPrimaryIdentityKey = o.bytes === String ? $util.base64.encode(m.contactPrimaryIdentityKey, 0, m.contactPrimaryIdentityKey.length) : o.bytes === Array ? Array.prototype.slice.call(m.contactPrimaryIdentityKey) : m.contactPrimaryIdentityKey;
|
|
1232
|
+
if (o.oneofs)
|
|
1233
|
+
d._contactPrimaryIdentityKey = "contactPrimaryIdentityKey";
|
|
1234
|
+
}
|
|
1235
|
+
if (m.pinned != null && m.hasOwnProperty("pinned")) {
|
|
1236
|
+
d.pinned = m.pinned;
|
|
1237
|
+
if (o.oneofs)
|
|
1238
|
+
d._pinned = "pinned";
|
|
1239
|
+
}
|
|
1240
|
+
if (m.muteEndTime != null && m.hasOwnProperty("muteEndTime")) {
|
|
1241
|
+
if (typeof m.muteEndTime === "number")
|
|
1242
|
+
d.muteEndTime = o.longs === String ? String(m.muteEndTime) : m.muteEndTime;
|
|
1243
|
+
else
|
|
1244
|
+
d.muteEndTime = o.longs === String ? longToString(m.muteEndTime, true) : o.longs === Number ? longToNumber(m.muteEndTime, true) : m.muteEndTime;
|
|
1245
|
+
if (o.oneofs)
|
|
1246
|
+
d._muteEndTime = "muteEndTime";
|
|
1247
|
+
}
|
|
1248
|
+
if (m.wallpaper != null && m.hasOwnProperty("wallpaper")) {
|
|
1249
|
+
d.wallpaper = $root.proto.WallpaperSettings.toObject(m.wallpaper, o);
|
|
1250
|
+
if (o.oneofs)
|
|
1251
|
+
d._wallpaper = "wallpaper";
|
|
1252
|
+
}
|
|
1253
|
+
if (m.mediaVisibility != null && m.hasOwnProperty("mediaVisibility")) {
|
|
1254
|
+
d.mediaVisibility = o.enums === String ? $root.proto.MediaVisibility[m.mediaVisibility] === undefined ? m.mediaVisibility : $root.proto.MediaVisibility[m.mediaVisibility] : m.mediaVisibility;
|
|
1255
|
+
if (o.oneofs)
|
|
1256
|
+
d._mediaVisibility = "mediaVisibility";
|
|
1257
|
+
}
|
|
1258
|
+
if (m.tcTokenSenderTimestamp != null && m.hasOwnProperty("tcTokenSenderTimestamp")) {
|
|
1259
|
+
if (typeof m.tcTokenSenderTimestamp === "number")
|
|
1260
|
+
d.tcTokenSenderTimestamp = o.longs === String ? String(m.tcTokenSenderTimestamp) : m.tcTokenSenderTimestamp;
|
|
1261
|
+
else
|
|
1262
|
+
d.tcTokenSenderTimestamp = o.longs === String ? longToString(m.tcTokenSenderTimestamp, true) : o.longs === Number ? longToNumber(m.tcTokenSenderTimestamp, true) : m.tcTokenSenderTimestamp;
|
|
1263
|
+
if (o.oneofs)
|
|
1264
|
+
d._tcTokenSenderTimestamp = "tcTokenSenderTimestamp";
|
|
1265
|
+
}
|
|
1266
|
+
if (m.suspended != null && m.hasOwnProperty("suspended")) {
|
|
1267
|
+
d.suspended = m.suspended;
|
|
1268
|
+
if (o.oneofs)
|
|
1269
|
+
d._suspended = "suspended";
|
|
1270
|
+
}
|
|
1271
|
+
if (m.terminated != null && m.hasOwnProperty("terminated")) {
|
|
1272
|
+
d.terminated = m.terminated;
|
|
1273
|
+
if (o.oneofs)
|
|
1274
|
+
d._terminated = "terminated";
|
|
1275
|
+
}
|
|
1276
|
+
if (m.createdAt != null && m.hasOwnProperty("createdAt")) {
|
|
1277
|
+
if (typeof m.createdAt === "number")
|
|
1278
|
+
d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
|
|
1279
|
+
else
|
|
1280
|
+
d.createdAt = o.longs === String ? longToString(m.createdAt, true) : o.longs === Number ? longToNumber(m.createdAt, true) : m.createdAt;
|
|
1281
|
+
if (o.oneofs)
|
|
1282
|
+
d._createdAt = "createdAt";
|
|
1283
|
+
}
|
|
1284
|
+
if (m.createdBy != null && m.hasOwnProperty("createdBy")) {
|
|
1285
|
+
d.createdBy = m.createdBy;
|
|
1286
|
+
if (o.oneofs)
|
|
1287
|
+
d._createdBy = "createdBy";
|
|
1288
|
+
}
|
|
1289
|
+
if (m.description != null && m.hasOwnProperty("description")) {
|
|
1290
|
+
d.description = m.description;
|
|
1291
|
+
if (o.oneofs)
|
|
1292
|
+
d._description = "description";
|
|
1293
|
+
}
|
|
1294
|
+
if (m.support != null && m.hasOwnProperty("support")) {
|
|
1295
|
+
d.support = m.support;
|
|
1296
|
+
if (o.oneofs)
|
|
1297
|
+
d._support = "support";
|
|
1298
|
+
}
|
|
1299
|
+
if (m.isParentGroup != null && m.hasOwnProperty("isParentGroup")) {
|
|
1300
|
+
d.isParentGroup = m.isParentGroup;
|
|
1301
|
+
if (o.oneofs)
|
|
1302
|
+
d._isParentGroup = "isParentGroup";
|
|
1303
|
+
}
|
|
1304
|
+
if (m.isDefaultSubgroup != null && m.hasOwnProperty("isDefaultSubgroup")) {
|
|
1305
|
+
d.isDefaultSubgroup = m.isDefaultSubgroup;
|
|
1306
|
+
if (o.oneofs)
|
|
1307
|
+
d._isDefaultSubgroup = "isDefaultSubgroup";
|
|
1308
|
+
}
|
|
1309
|
+
if (m.parentGroupId != null && m.hasOwnProperty("parentGroupId")) {
|
|
1310
|
+
d.parentGroupId = m.parentGroupId;
|
|
1311
|
+
if (o.oneofs)
|
|
1312
|
+
d._parentGroupId = "parentGroupId";
|
|
1313
|
+
}
|
|
1314
|
+
if (m.displayName != null && m.hasOwnProperty("displayName")) {
|
|
1315
|
+
d.displayName = m.displayName;
|
|
1316
|
+
if (o.oneofs)
|
|
1317
|
+
d._displayName = "displayName";
|
|
1318
|
+
}
|
|
1319
|
+
if (m.pnJid != null && m.hasOwnProperty("pnJid")) {
|
|
1320
|
+
d.pnJid = m.pnJid;
|
|
1321
|
+
if (o.oneofs)
|
|
1322
|
+
d._pnJid = "pnJid";
|
|
1323
|
+
}
|
|
1324
|
+
if (m.shareOwnPn != null && m.hasOwnProperty("shareOwnPn")) {
|
|
1325
|
+
d.shareOwnPn = m.shareOwnPn;
|
|
1326
|
+
if (o.oneofs)
|
|
1327
|
+
d._shareOwnPn = "shareOwnPn";
|
|
1328
|
+
}
|
|
1329
|
+
if (m.pnhDuplicateLidThread != null && m.hasOwnProperty("pnhDuplicateLidThread")) {
|
|
1330
|
+
d.pnhDuplicateLidThread = m.pnhDuplicateLidThread;
|
|
1331
|
+
if (o.oneofs)
|
|
1332
|
+
d._pnhDuplicateLidThread = "pnhDuplicateLidThread";
|
|
1333
|
+
}
|
|
1334
|
+
if (m.lidJid != null && m.hasOwnProperty("lidJid")) {
|
|
1335
|
+
d.lidJid = m.lidJid;
|
|
1336
|
+
if (o.oneofs)
|
|
1337
|
+
d._lidJid = "lidJid";
|
|
1338
|
+
}
|
|
1339
|
+
if (m.username != null && m.hasOwnProperty("username")) {
|
|
1340
|
+
d.username = m.username;
|
|
1341
|
+
if (o.oneofs)
|
|
1342
|
+
d._username = "username";
|
|
1343
|
+
}
|
|
1344
|
+
if (m.lidOriginType != null && m.hasOwnProperty("lidOriginType")) {
|
|
1345
|
+
d.lidOriginType = m.lidOriginType;
|
|
1346
|
+
if (o.oneofs)
|
|
1347
|
+
d._lidOriginType = "lidOriginType";
|
|
1348
|
+
}
|
|
1349
|
+
if (m.commentsCount != null && m.hasOwnProperty("commentsCount")) {
|
|
1350
|
+
d.commentsCount = m.commentsCount;
|
|
1351
|
+
if (o.oneofs)
|
|
1352
|
+
d._commentsCount = "commentsCount";
|
|
1353
|
+
}
|
|
1354
|
+
if (m.locked != null && m.hasOwnProperty("locked")) {
|
|
1355
|
+
d.locked = m.locked;
|
|
1356
|
+
if (o.oneofs)
|
|
1357
|
+
d._locked = "locked";
|
|
1358
|
+
}
|
|
1359
|
+
if (m.systemMessageToInsert != null && m.hasOwnProperty("systemMessageToInsert")) {
|
|
1360
|
+
d.systemMessageToInsert = o.enums === String ? $root.proto.PrivacySystemMessage[m.systemMessageToInsert] === undefined ? m.systemMessageToInsert : $root.proto.PrivacySystemMessage[m.systemMessageToInsert] : m.systemMessageToInsert;
|
|
1361
|
+
if (o.oneofs)
|
|
1362
|
+
d._systemMessageToInsert = "systemMessageToInsert";
|
|
1363
|
+
}
|
|
1364
|
+
if (m.capiCreatedGroup != null && m.hasOwnProperty("capiCreatedGroup")) {
|
|
1365
|
+
d.capiCreatedGroup = m.capiCreatedGroup;
|
|
1366
|
+
if (o.oneofs)
|
|
1367
|
+
d._capiCreatedGroup = "capiCreatedGroup";
|
|
1368
|
+
}
|
|
1369
|
+
if (m.accountLid != null && m.hasOwnProperty("accountLid")) {
|
|
1370
|
+
d.accountLid = m.accountLid;
|
|
1371
|
+
if (o.oneofs)
|
|
1372
|
+
d._accountLid = "accountLid";
|
|
1373
|
+
}
|
|
1374
|
+
if (m.limitSharing != null && m.hasOwnProperty("limitSharing")) {
|
|
1375
|
+
d.limitSharing = m.limitSharing;
|
|
1376
|
+
if (o.oneofs)
|
|
1377
|
+
d._limitSharing = "limitSharing";
|
|
1378
|
+
}
|
|
1379
|
+
if (m.limitSharingSettingTimestamp != null && m.hasOwnProperty("limitSharingSettingTimestamp")) {
|
|
1380
|
+
if (typeof m.limitSharingSettingTimestamp === "number")
|
|
1381
|
+
d.limitSharingSettingTimestamp = o.longs === String ? String(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
|
|
1382
|
+
else
|
|
1383
|
+
d.limitSharingSettingTimestamp = o.longs === String ? longToString(m.limitSharingSettingTimestamp) : o.longs === Number ? longToNumber(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
|
|
1384
|
+
if (o.oneofs)
|
|
1385
|
+
d._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
|
|
1386
|
+
}
|
|
1387
|
+
if (m.limitSharingTrigger != null && m.hasOwnProperty("limitSharingTrigger")) {
|
|
1388
|
+
d.limitSharingTrigger = o.enums === String ? $root.proto.LimitSharing.TriggerType[m.limitSharingTrigger] === undefined ? m.limitSharingTrigger : $root.proto.LimitSharing.TriggerType[m.limitSharingTrigger] : m.limitSharingTrigger;
|
|
1389
|
+
if (o.oneofs)
|
|
1390
|
+
d._limitSharingTrigger = "limitSharingTrigger";
|
|
1391
|
+
}
|
|
1392
|
+
if (m.limitSharingInitiatedByMe != null && m.hasOwnProperty("limitSharingInitiatedByMe")) {
|
|
1393
|
+
d.limitSharingInitiatedByMe = m.limitSharingInitiatedByMe;
|
|
1394
|
+
if (o.oneofs)
|
|
1395
|
+
d._limitSharingInitiatedByMe = "limitSharingInitiatedByMe";
|
|
1396
|
+
}
|
|
1397
|
+
if (m.maibaAiThreadEnabled != null && m.hasOwnProperty("maibaAiThreadEnabled")) {
|
|
1398
|
+
d.maibaAiThreadEnabled = m.maibaAiThreadEnabled;
|
|
1399
|
+
if (o.oneofs)
|
|
1400
|
+
d._maibaAiThreadEnabled = "maibaAiThreadEnabled";
|
|
1401
|
+
}
|
|
1402
|
+
if (m.isMarketingMessageThread != null && m.hasOwnProperty("isMarketingMessageThread")) {
|
|
1403
|
+
d.isMarketingMessageThread = m.isMarketingMessageThread;
|
|
1404
|
+
if (o.oneofs)
|
|
1405
|
+
d._isMarketingMessageThread = "isMarketingMessageThread";
|
|
1406
|
+
}
|
|
1407
|
+
if (m.isSenderNewAccount != null && m.hasOwnProperty("isSenderNewAccount")) {
|
|
1408
|
+
d.isSenderNewAccount = m.isSenderNewAccount;
|
|
1409
|
+
if (o.oneofs)
|
|
1410
|
+
d._isSenderNewAccount = "isSenderNewAccount";
|
|
1411
|
+
}
|
|
1412
|
+
if (m.afterReadDuration != null && m.hasOwnProperty("afterReadDuration")) {
|
|
1413
|
+
d.afterReadDuration = m.afterReadDuration;
|
|
1414
|
+
if (o.oneofs)
|
|
1415
|
+
d._afterReadDuration = "afterReadDuration";
|
|
1416
|
+
}
|
|
1417
|
+
if (m.isSenderSuspicious != null && m.hasOwnProperty("isSenderSuspicious")) {
|
|
1418
|
+
d.isSenderSuspicious = m.isSenderSuspicious;
|
|
1419
|
+
if (o.oneofs)
|
|
1420
|
+
d._isSenderSuspicious = "isSenderSuspicious";
|
|
1421
|
+
}
|
|
1422
|
+
if (m.appealStatus != null && m.hasOwnProperty("appealStatus")) {
|
|
1423
|
+
d.appealStatus = o.enums === String ? $root.proto.Conversation.GroupAppealStatus[m.appealStatus] === undefined ? m.appealStatus : $root.proto.Conversation.GroupAppealStatus[m.appealStatus] : m.appealStatus;
|
|
1424
|
+
if (o.oneofs)
|
|
1425
|
+
d._appealStatus = "appealStatus";
|
|
1426
|
+
}
|
|
1427
|
+
if (m.appealUpdateTime != null && m.hasOwnProperty("appealUpdateTime")) {
|
|
1428
|
+
if (typeof m.appealUpdateTime === "number")
|
|
1429
|
+
d.appealUpdateTime = o.longs === String ? String(m.appealUpdateTime) : m.appealUpdateTime;
|
|
1430
|
+
else
|
|
1431
|
+
d.appealUpdateTime = o.longs === String ? longToString(m.appealUpdateTime, true) : o.longs === Number ? longToNumber(m.appealUpdateTime, true) : m.appealUpdateTime;
|
|
1432
|
+
if (o.oneofs)
|
|
1433
|
+
d._appealUpdateTime = "appealUpdateTime";
|
|
1434
|
+
}
|
|
1435
|
+
if (m.authAgentParentCompanyName != null && m.hasOwnProperty("authAgentParentCompanyName")) {
|
|
1436
|
+
d.authAgentParentCompanyName = m.authAgentParentCompanyName;
|
|
1437
|
+
if (o.oneofs)
|
|
1438
|
+
d._authAgentParentCompanyName = "authAgentParentCompanyName";
|
|
1439
|
+
}
|
|
1440
|
+
if (m.authAgentObaPhoneNumber != null && m.hasOwnProperty("authAgentObaPhoneNumber")) {
|
|
1441
|
+
d.authAgentObaPhoneNumber = m.authAgentObaPhoneNumber;
|
|
1442
|
+
if (o.oneofs)
|
|
1443
|
+
d._authAgentObaPhoneNumber = "authAgentObaPhoneNumber";
|
|
1444
|
+
}
|
|
1445
|
+
return d;
|
|
1446
|
+
};
|
|
1447
|
+
Conversation.prototype.toJSON = function toJSON() {
|
|
1448
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1449
|
+
};
|
|
1450
|
+
Conversation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1451
|
+
if (typeUrlPrefix === undefined) {
|
|
1452
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1453
|
+
}
|
|
1454
|
+
return typeUrlPrefix + "/proto.Conversation";
|
|
1455
|
+
};
|
|
1456
|
+
$lazy(Conversation, "EndOfHistoryTransferType", function() {
|
|
1457
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
1458
|
+
values[valuesById[0] = "COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY"] = 0;
|
|
1459
|
+
values[valuesById[1] = "COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY"] = 1;
|
|
1460
|
+
values[valuesById[2] = "COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY"] = 2;
|
|
1461
|
+
values[valuesById[3] = "COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS"] = 3;
|
|
1462
|
+
return values;
|
|
1463
|
+
});
|
|
1464
|
+
$lazy(Conversation, "GroupAppealStatus", function() {
|
|
1465
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
1466
|
+
values[valuesById[0] = "NO_APPEAL"] = 0;
|
|
1467
|
+
values[valuesById[1] = "APPEAL_IN_REVIEW"] = 1;
|
|
1468
|
+
values[valuesById[2] = "APPEAL_APPROVED"] = 2;
|
|
1469
|
+
values[valuesById[3] = "APPEAL_REJECTED"] = 3;
|
|
1470
|
+
return values;
|
|
1471
|
+
});
|
|
1472
|
+
return Conversation;
|