Objective-CclassIMDaemonCore

@interface IMDChatRegistry : NSObject <TUConversationManagerDelegate, IMUnlockMonitorListener>

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 350

  1. method+ (id)sharedInstance;
  2. method+ (id)supportedServiceNames;
  3. ivarIMAcceptedContactsChangeNotifier *_acceptedContactsChangeNotifier;+0x78
  4. ivarIMDBackgroundMessageProcessingController *_bgstMessageProcessingController;+0x58
  5. ivarBOOL _blackholedChatsExistCache;+0x2b
  6. ivarNSMutableDictionary *_cachedAliasToCNIDMap;+0x70
  7. ivarIMDChatStore *_chatStore;+0x50
  8. ivarNSMutableDictionary *_chats;+0x20
  9. ivarNSMutableDictionary *_chatsByGroupID;+0x8
  10. ivarNSRecursiveLock *_chatsLock;+0x10
  11. ivarIMDCKUtilities *_ckUtilities;+0x48
  12. ivarTUConversationManager *_conversationManager;+0xa0
  13. ivarBOOL _doneLoadingAfterMerge;+0x2a
  14. ivarBOOL _firstUnlockTriggered;+0x29
  15. ivarNSRecursiveLock *_handlesLock;+0x18
  16. ivarBOOL _hasDumpedLogsForNoExisitingGroup;+0x2c
  17. ivarNSData *_historyToken;+0x40
  18. ivarNSMutableDictionary *_idToHandlesMap;+0x38
  19. ivarBOOL _isLoading;+0x28
  20. ivarIMDMessageHistorySyncController *_messageHistorySyncController;+0x60
  21. ivarNSMutableDictionary *_pendingChatBotHandleToAlternateID;+0x80
  22. ivarNSMutableDictionary *_pendingDisplayNameOverrides;+0x90
  23. ivarNSMutableSet *_pendingHandleIDsForReload;+0x98
  24. ivarNSMutableSet *_pendingParticipantIDSetsForRemerge;+0x88
  25. ivarunsigned long long _persistedChatCount;+0x30
  26. ivarNSMutableDictionary *_personCentricGroupedChatsCache;+0x68
  27. method- (void).cxx_destruct;
  28. method- (void)__addChatToGroupIDChatIndex:(id)arg0;
  29. method- (void)__flushPendingForceReloadForHandles;
  30. method- (void)__removeChatFromGroupIDChatIndex:(id)arg0;
  31. method- (void)__unassignGroupIDFromAllChats:(id)arg0;
  32. method- (id)_activeTUConversations;
  33. method- (id)_addChatFromCacheMiss:(id)arg0 preferExistingChat:(BOOL)arg1;
  34. method- (id)_addChatsFromCacheMisses:(id)arg0 preferExistingChats:(BOOL)arg1;
  35. method- (void)_addItem:(id)arg0 toChat:(id)arg1 reason:(long long)arg2;
  36. method- (void)_addItemToParentChatIfNotLocationItem:(id)arg0 parentChat:(id)arg1 updatedLastMessageCount:(unsigned long long)arg2 reason:(long long)arg3;
  37. method- (void)_adoptUpdatedStateForExistingItem:(id)arg0 itemFromCKRecord:(id)arg1;
  38. method- (id)_aliasToCNIDMapForAliases:(id)arg0;
  39. method- (id)_allChatInfo;
  40. method- (id)_allHandles;
  41. method- (id)_bestServiceSessionForService:(id)arg0 accountID:(id)arg1;
  42. method- (id)_blackholedChatInfoForNumberOfChats:(long long)arg0;
  43. method- (id)_cachedChatWithGUID:(id)arg0;
  44. method- (id)_cachedChatsWithGroupID:(id)arg0;
  45. method- (void)_captureExistingMergedChatsFailureWithOriginalChat:(id)arg0 foundChats:(id)arg1;
  46. method- (BOOL)_chat:(id)arg0 isDuplicateOfChat:(id)arg1;
  47. method- (id)_chatForTUConversation:(id)arg0;
  48. method- (id)_chatForTUGroupID:(id)arg0 participants:(id)arg1;
  49. method- (id)_chatGUIDToChatMapForChats:(id)arg0;
  50. method- (void)_chatGUIDsThatNeedRemerging:(id *)arg0 chatDictionaryArray:(id *)arg1 aliasMap:(id)arg2;
  51. method- (void)_chatGUIDsThatNeedRemerging:(id *)arg0 chatDictionaryArray:(id *)arg1 oldPersonCentricID:(id)arg2;
  52. method- (void)_chatGUIDsThatNeedUpdates:(id *)arg0 chatDictionaryArray:(id *)arg1 delta:(id)arg2 mergeResult:(id)arg3;
  53. method- (void)_chatGUIDsToRemergeForAcceptedContactChange:(id /* block */)arg0;
  54. method- (void)_chatGUIDsToRemergeForContactChange:(id /* block */)arg0;
  55. method- (id)_chatInfoForChats:(id)arg0;
  56. method- (id)_chatInfoForConnection;
  57. method- (id)_chatInfoForNumberOfChats:(long long)arg0;
  58. method- (id)_chatInfoInRange:(_NSRange)arg0 wantsBlackholed:(BOOL)arg1;
  59. method- (id)_chatsWithBlackholed:(BOOL)arg0;
  60. method- (void)_checkForContactChangesWithChangeType:(id)arg0;
  61. method- (id)_cnIDForHandle:(id)arg0;
  62. method- (long long)_compareDuplicateChatsWithFirstChat:(id)arg0 secondChat:(id)arg1;
  63. method- (BOOL)_contactsBasedMergingEnabled;
  64. method- (void)_contactsChanged:(id)arg0;
  65. method- (id)_conversationItemForChat:(id)arg0 conversation:(id)arg1;
  66. method- (id)_copyDuplicateChatsArrayWithLimit:(long long)arg0;
  67. method- (id)_copyGroupedDuplicateChatsSortedFromWinningToLosingWithLimit:(long long)arg0;
  68. method- (id)_createGroupChatForConversation:(id)arg0 onSession:(id)arg1;
  69. method- (id)_createGroupChatsArray;
  70. method- (BOOL)_ensureNoExistingGroupForSyncData:(id)arg0;
  71. method- (void)_enumeratePersonMergedChatsWithMaximumNumberOfChats:(long long)arg0 usingChats:(id)arg1 useCachedChatGroups:(BOOL)arg2 includingPinnedChatIdentifiers:(id)arg3 usingBlock:(id /* block */)arg4;
  72. method- (void)_evictCachedChat:(id)arg0;
  73. method- (id)_exactGroupChatMatchOrNewestMatchingGroupID:(id)arg0 originalGroupID:(id)arg1 serviceName:(id)arg2 participants:(id)arg3 toIdentifier:(id)arg4 outNewestSiblingChat:(id *)arg5;
  74. method- (id)_exactGroupChatMatchOrNewestMatchingIdentifierFromSortedIdentifiers:(id)arg0 participants:(id)arg1 toIdentifier:(id)arg2;
  75. method- (id)_existingChatForSyncData:(id)arg0;
  76. method- (id)_existingChatsForIDs:(id)arg0 serviceName:(id)arg1 displayName:(id)arg2 groupID:(id)arg3 useOriginalGroupID:(BOOL)arg4 style:(unsigned char)arg5;
  77. method- (id)_existingChatsSortedByIdentifiersAndRecencyFromSortedIdentifiers:(id)arg0;
  78. method- (BOOL)_existingItemRequiresUpgrade:(id)arg0 itemFromCKRecord:(id)arg1;
  79. method- (id)_existingiMessageChatForChatIdentifier:(id)arg0 style:(unsigned char)arg1;
  80. method- (id)_extractHandlesFromMap:(id)arg0 usingCNID:(id)arg1;
  81. method- (void)_finalizeIncomingChat:(id)arg0;
  82. method- (id)_findChatWinnerInDuplicateChatArray:(id)arg0 fixDisplayName:(BOOL *)arg1;
  83. method- (id)_findExistingGroupChatForConversation:(id)arg0 onSession:(id)arg1;
  84. method- (id)_findLosingChatGUIDsInArrayOfChats:(id)arg0 withWinner:(id)arg1;
  85. method- (void)_fixSiblingChatsAndStoreIfNeeded:(id)arg0 iMessageChat:(id)arg1 chatsToRegenerate:(id)arg2;
  86. method- (void)_fixUpChatParticipantsIfNeeded:(id)arg0;
  87. method- (void)_fixUpChatParticipantsIfNeeded:(id)arg0 usingChatGUIDToChatMap:(id)arg1;
  88. method- (id)_forceReloadChat:(id)arg0;
  89. method- (void)_forceReloadChats:(BOOL)arg0;
  90. method- (void)_forceReloadChatsWithAnyHandleIDs:(id)arg0;
  91. method- (id)_generateCurrentAliasToCNIDDictionary;
  92. method- (id)_groupPhotoUpdateDateForFileTransfer:(id)arg0;
  93. method- (void)_handleUPIForChat:(id)arg0 toMessage:(id)arg1 hintMessage:(id)arg2;
  94. method- (id)_handlesWithChangedContactsOriginalMap:(id)arg0 newMap:(id)arg1;
  95. method- (BOOL)_hasInconsistentGroupPhotoGUIDAcrossMergedChats:(id)arg0;
  96. method- (BOOL)_hasInconsistentIsFilteredAcrossMergedChats:(id)arg0;
  97. method- (BOOL)_hasInconsistentJoinStateAcrossMergedChats:(id)arg0;
  98. method- (BOOL)_hasSavedContactCardForHandle:(id)arg0;
  99. method- (id)_initiatorForConversation:(id)arg0 chat:(id)arg1;
  100. method- (void)_insertChatUsingSyncData:(id)arg0;
  101. method- (id)_itemFromCKRecord:(id)arg0;
  102. method- (id)_lastIncomingMessageInMessageItems:(id)arg0;
  103. method- (id)_lookupChatUsingParentChatID:(id)arg0 service:(id)arg1;
  104. method- (void)_makeAllAttachmentsClassC;
  105. method- (void)_markForksAsSyncedForChat:(id)arg0;
  106. method- (void)_markGroupPhotosAsUnpurgeableIfNecessary;
  107. method- (BOOL)_mergeDuplicateGroupsIfNeeded;
  108. method- (id)_mergeParticipantIDs:(id)arg0 style:(unsigned char)arg1 displayName:(id)arg2;
  109. method- (id)_mergedPinningIdentifiersForChats:(id)arg0 chatGUIDToChatMap:(id)arg1 groupedChatsByPersonCentricIdWithSortedChats:(id)arg2;
  110. method- (id)_messageStore;
  111. method- (id)_newestExistingChatWithGroupID:(id)arg0 onService:(id)arg1;
  112. method- (id)_newestGroupChatMatchingParticipants:(id)arg0 displayName:(id)arg1 strictDisplayNameMatching:(BOOL)arg2 serviceName:(id)arg3 toIdentifier:(id)arg4;
  113. method- (id)_oneToOneChatForRemoteHandle:(id)arg0;
  114. method- (id)_parentChatIDFromCKRecord:(id)arg0;
  115. method- (id)_participantIDSetFromHandles:(id)arg0 toIdentifier:(id)arg1;
  116. method- (void)_performCheckForContactChangesWithChangeType:(long long)arg0;
  117. method- (void)_performPostUnlockHousekeeping;
  118. method- (void)_persistMergeIDMergedChatsIfNeeded;
  119. method- (void)_populateContactIDOnHandles;
  120. method- (void)_populateLastMessageForChat:(id)arg0;
  121. method- (id)_potentialGUIDsForIdentifier:(id)arg0;
  122. method- (id)_preferredGroupPhotoGuidAcrossMergedChats:(id)arg0;
  123. method- (void)_refreshDomainIdentifiersForChat:(id)arg0;
  124. method- (void)_reloadChatsForDatabaseMergeOrDatabaseSwitchWithReset:(BOOL)arg0;
  125. method- (void)_remergeChats:(id)arg0;
  126. method- (void)_remergeChatsForAcceptedContactsInAliasToCNIDMapWithCompletionHandler:(id /* block */)arg0;
  127. method- (void)_remergeChatsWithAliasToCNIDMapWithCompletionHandler:(id /* block */)arg0;
  128. method- (void)_remergeChatsWithParticipantIDsSets:(id)arg0 displayNameOverrides:(id)arg1;
  129. method- (void)_remergeChatsWithPendingParticipantIDSets;
  130. method- (void)_repairInconsistentGroupPhotoGuidAcrossMergedChatsIfNecessary:(id)arg0;
  131. method- (void)_repairInconsistentIsFilteredAcrossMergedChatsIfNecessary:(id)arg0;
  132. method- (void)_repairInconsistentJoinStatesAcrossMergedChatsIfNecessary:(id)arg0;
  133. method- (void)_reportMessageDictionaryForMessages:(id)arg0 isAutoReport:(BOOL)arg1 withChat:(id)arg2 conversationID:(id)arg3 maxMessagesToReport:(unsigned long long)arg4 totalMessageCount:(unsigned long long *)arg5 isJunkReportedToCarrier:(BOOL)arg6 reportReason:(unsigned long long)arg7 context:(id)arg8;
  134. method- (void)_reportMessageDictionaryForMessages:(id)arg0 isAutoReport:(BOOL)arg1 withChat:(id)arg2 conversationID:(id)arg3 maxMessagesToReport:(unsigned long long)arg4 totalMessageCount:(unsigned long long *)arg5 notifyInternalSecurity:(BOOL)arg6 isJunkReportedToCarrier:(BOOL)arg7 reportReason:(unsigned long long)arg8 context:(id)arg9;
  135. method- (void)_serializeChatsForRemerge:(id)arg0 guidsThatNeedRemerging:(id *)arg1 chatDictionaryArray:(id *)arg2;
  136. method- (void)_setInitialLoadForTesting:(BOOL)arg0;
  137. method- (void)_setSortIDOnIncomingMessage:(id)arg0 forChat:(id)arg1;
  138. method- (id)_sharedMessageStore;
  139. method- (BOOL)_shouldHandleInternalPhishingAttempts;
  140. method- (id)_siblingChatsForChat:(id)arg0 usingChatGUIDToChatMap:(id)arg1 iMessageChat:(id *)arg2;
  141. method- (id)_spamMessageCreator;
  142. method- (void)_startObservingAcceptedContactChanges;
  143. method- (void)_submitAndOpenTapToRadarForSortedIdentifiers:(id)arg0 participants:(id)arg1 sortedChats:(id)arg2;
  144. method- (void)_triggerRemergeForPersonCentricID:(id)arg0;
  145. method- (id)_tuConversationForChat:(id)arg0;
  146. method- (id)_uncachedNewestChatWithOriginalGroupID:(id)arg0 onService:(id)arg1;
  147. method- (void)_updateAcceptedContactsInAliasToCNIDMapWithCompletionHandler:(id /* block */)arg0;
  148. method- (void)_updateAliasToCNIDMapAndHistoryTokenWithCompletionHandler:(id /* block */)arg0;
  149. method- (void)_updateBlackholedChatsFromDelta:(id)arg0;
  150. method- (void)_updateCachedCNIDMapForHandles:(id)arg0;
  151. method- (void)_updateChat:(id)arg0 usingSyncData:(id)arg1;
  152. method- (void)_updateHandlesFromDelta:(id)arg0;
  153. method- (void)_updateLastMessageTimeStampForChat:(id)arg0;
  154. method- (void)_updateLastMessageTimeStampForChat:(id)arg0 broadcaster:(id)arg1;
  155. method- (void)_updatePendingReviewForChatsWithGUIDsInBackground:(id)arg0 pendingReview:(BOOL)arg1 completionBlock:(id /* block */)arg2;
  156. method- (id)_upgradeChatToGroupChat:(id)arg0 forConversation:(id)arg1;
  157. method- (id)acceptedContactsChangeNotifier;
  158. method- (void)addChat:(id)arg0;
  159. method- (void)addChat:(id)arg0 firstLoad:(BOOL)arg1 store:(BOOL)arg2;
  160. method- (void)addIMDHandleToRegistry:(id)arg0;
  161. method- (void)addItem:(id)arg0 toChat:(id)arg1;
  162. method- (void)addMessage:(id)arg0 toChat:(id)arg1;
  163. method- (void)addMessage:(id)arg0 toChat:(id)arg1 reason:(long long)arg2;
  164. method- (id)aliasToCNIDMap;
  165. method- (id)allChats;
  166. method- (id)allChatsWithIdentifier:(id)arg0 style:(unsigned char)arg1 serviceNames:(id)arg2;
  167. method- (id)allExistingChatsWithIdentifier:(id)arg0;
  168. method- (id)allExistingChatsWithIdentifier:(id)arg0 style:(unsigned char)arg1;
  169. method- (id)allExistingSupportedServiceChatsWithIdentifier:(id)arg0 style:(unsigned char)arg1;
  170. method- (id)allHandlesForID:(id)arg0;
  171. method- (id)alternateIDForHandle:(id)arg0;
  172. method- (void)assignNonHistoricaliMessageIdentifierAndBroadcastForChat:(id)arg0 identifier:(id)arg1;
  173. method- (id)bestCandidateGroupChatWithFromIdentifier:(id)arg0 toIdentifier:(id)arg1 displayName:(id)arg2 participants:(id)arg3 updatingToLatestiMessageGroupID:(id)arg4 sortedIdentifiers:(id)arg5 serviceName:(id)arg6 shouldUpdateExistingGroupID:(BOOL)arg7;
  174. method- (id)bestCandidateGroupChatWithFromIdentifier:(id)arg0 toIdentifier:(id)arg1 displayName:(id)arg2 participants:(id)arg3 updatingToLatestiMessageGroupID:(id)arg4 sortedIdentifiers:(id)arg5 serviceName:(id)arg6 shouldUpdateExistingGroupID:(BOOL)arg7 validationOptions:(unsigned long long)arg8 failedValidations:(unsigned long long *)arg9;
  175. method- (id)bestCandidateGroupChatWithFromIdentifier:(id)arg0 toIdentifier:(id)arg1 displayName:(id)arg2 participants:(id)arg3 updatingToLatestiMessageGroupID:(id)arg4 sortedIdentifiers:(id)arg5 serviceName:(id)arg6 validationOptions:(unsigned long long)arg7 failedValidations:(unsigned long long *)arg8;
  176. method- (id)bgstMessageProcessingController;
  177. method- (id)blackholedChats;
  178. method- (BOOL)blackholedChatsExist;
  179. method- (id)cachedAliasToCNIDMap;
  180. method- (unsigned long long)cachedChatCount;
  181. method- (id)cachedChats;
  182. method- (id)cachedGroupChatsContainingHandles:(id)arg0;
  183. method- (id)cachedOneOnOneChatsWithIdentifiers:(id)arg0;
  184. method- (id)chatForHandle:(id)arg0 account:(id)arg1 chatIdentifier:(id)arg2 guid:(id)arg3 lastAddressedHandle:(id)arg4 lastAddressedSIMID:(id)arg5 isBlackholed:(BOOL)arg6;
  185. method- (id)chatForHandles:(id)arg0 account:(id)arg1 chatIdentifier:(id)arg2 style:(unsigned char)arg3 groupID:(id)arg4 originalGroupID:(id)arg5 displayName:(id)arg6 guid:(id)arg7 lastAddressedHandle:(id)arg8 lastAddressedSIMID:(id)arg9 isBlackholed:(BOOL)arg10;
  186. method- (id)chatForRoom:(id)arg0 account:(id)arg1 chatIdentifier:(id)arg2 guid:(id)arg3;
  187. method- (id)chatStore;
  188. method- (id)chats;
  189. method- (id)chatsToUploadToCloudKitWithLimit:(unsigned long long)arg0;
  190. method- (void)checkBlackholedChatsExistAfterUpdatingChatWithAdd:(BOOL)arg0;
  191. method- (id)ckUtilities;
  192. method- (void)clearPendingDeleteTable;
  193. method- (void)clearRecoverableMessageTombStones;
  194. method- (id)conversationManager;
  195. method- (void)conversationManager:(id)arg0 conversation:(id)arg1 addedMembersLocally:(id)arg2;
  196. method- (id)copyRecordIDsAndGUIDsPendingCloudKitDelete;
  197. method- (void)dealloc;
  198. method- (BOOL)doneLoadingAfterMerge;
  199. method- (id)existingChatForID:(id)arg0;
  200. method- (id)existingChatForIDs:(id)arg0 account:(id)arg1 displayName:(id)arg2 groupID:(id)arg3 style:(unsigned char)arg4;
  201. method- (id)existingChatForIDs:(id)arg0 account:(id)arg1 displayName:(id)arg2 originalGroupID:(id)arg3 style:(unsigned char)arg4;
  202. method- (id)existingChatForIDs:(id)arg0 account:(id)arg1 style:(unsigned char)arg2;
  203. method- (id)existingChatForRoom:(id)arg0 account:(id)arg1;
  204. method- (id)existingChatWithEngramID:(id)arg0;
  205. method- (id)existingChatWithGUID:(id)arg0;
  206. method- (id)existingChatWithGroupID:(id)arg0 onService:(id)arg1;
  207. method- (id)existingChatWithIdentifier:(id)arg0 account:(id)arg1;
  208. method- (id)existingChatsFilteredUsingPredicate:(id)arg0;
  209. method- (id)existingChatsFilteredUsingPredicate:(id)arg0 sortedUsingLastMessageDateAscending:(BOOL)arg1 limit:(unsigned long long)arg2;
  210. method- (id)existingChatsFilteredUsingPredicate:(id)arg0 sortedUsingLastMessageDateAscending:(BOOL)arg1 olderThan:(id)arg2 limit:(unsigned long long)arg3;
  211. method- (id)existingChatsForGroupedIDs:(id)arg0 displayName:(id)arg1 style:(unsigned char)arg2;
  212. method- (id)existingChatsForIDs:(id)arg0 displayName:(id)arg1 groupID:(id)arg2 style:(unsigned char)arg3;
  213. method- (id)existingChatsForIDs:(id)arg0 onService:(id)arg1 displayName:(id)arg2 groupID:(id)arg3 style:(unsigned char)arg4;
  214. method- (id)existingChatsForIDs:(id)arg0 onService:(id)arg1 displayName:(id)arg2 originalGroupID:(id)arg3 style:(unsigned char)arg4;
  215. method- (id)existingChatsForIDs:(id)arg0 onService:(id)arg1 style:(unsigned char)arg2;
  216. method- (id)existingChatsWithGroupID:(id)arg0;
  217. method- (id)existingChatsWithPinningIdentifier:(id)arg0;
  218. method- (id)existingChatsWithQueryRequest:(id)arg0;
  219. method- (id)existingMergedChatsWithChat:(id)arg0;
  220. method- (id)existingOneOnOneChatsWithIdentifiers:(id)arg0;
  221. method- (id)existingSMSChatForID:(id)arg0;
  222. method- (id)existingSMSChatForID:(id)arg0 withChatStyle:(unsigned char)arg1;
  223. method- (id)existingiMessageChatForID:(id)arg0;
  224. method- (id)existingiMessageChatForID:(id)arg0 withChatStyle:(unsigned char)arg1;
  225. method- (void)fetchExistingChatsWithQueryRequest:(id)arg0 synchronously:(BOOL)arg1 completionHandler:(id /* block */)arg2;
  226. method- (void)fetchExistingUnreadChatsOlderThan:(id)arg0 predicate:(id)arg1 limit:(unsigned long long)arg2 completionHandler:(id /* block */)arg3;
  227. method- (BOOL)filteredChatsExistForServices:(id)arg0;
  228. method- (BOOL)filterediMessageChatsExist;
  229. method- (id)generateUnusedChatIdentifierForGroupChatWithAccount:(id)arg0;
  230. method- (id)groupChatsBasedOnIdentity:(id)arg0;
  231. method- (id)groupChatsBasedOnIdentityUsingCacheIfApplicable:(id)arg0;
  232. method- (BOOL)handleMessageUpdate:(id)arg0;
  233. method- (void)handleMessageUpdateConflictType:(id)arg0 serverRecord:(id)arg1 localRowID:(long long)arg2;
  234. method- (BOOL)hasDumpedLogsForNoExisitingGroup;
  235. method- (BOOL)hasKnownSenderChatWithChatIdentifier:(id)arg0;
  236. method- (BOOL)hasScheduledMessageForHandleID:(id)arg0;
  237. method- (id)historyToken;
  238. method- (id)idToHandlesMap;
  239. method- (id)init;
  240. method- (void)invalidatePersonCentricGroupedChatsCache;
  241. method- (BOOL)isBeingSetup;
  242. method- (BOOL)loadChatsWithCompletionBlock:(id /* block */)arg0;
  243. method- (unsigned long long)markAsSpamForIDs:(id)arg0 style:(unsigned char)arg1 onServices:(id)arg2 chatID:(id)arg3 conversationID:(id)arg4 queryID:(id)arg5 autoReport:(BOOL)arg6 isJunkReportedToCarrier:(BOOL)arg7 reportReason:(unsigned long long)arg8;
  244. method- (unsigned long long)markAsSpamForIDs:(id)arg0 style:(unsigned char)arg1 onServices:(id)arg2 chatID:(id)arg3 queryID:(id)arg4 autoReport:(BOOL)arg5;
  245. method- (unsigned long long)markAsSpamForIDs:(id)arg0 style:(unsigned char)arg1 onServices:(id)arg2 chatID:(id)arg3 queryID:(id)arg4 autoReport:(BOOL)arg5 isJunkReportedToCarrier:(BOOL)arg6;
  246. method- (void)markChatAsDeferredForSyncingUsingSyncData:(id)arg0;
  247. method- (void)markDeferredChatsAsNeedingSync;
  248. method- (id)messageHistorySyncController;
  249. method- (id)messagesPendingUpdateT1ToCloudKitWithLimit:(unsigned long long)arg0;
  250. method- (id)messagesPendingUpdateT2ToCloudKitWithLimit:(unsigned long long)arg0;
  251. method- (id)messagesToUploadToCloudKitWithLimit:(unsigned long long)arg0;
  252. method- (void)moveMessagesInChatsWithGUIDsToRecentlyDeleted:(id)arg0 filterKeys:(id)arg1 deleteDate:(id)arg2;
  253. method- (void)moveMessagesWithGUIDsToRecentlyDeleted:(id)arg0 deleteDate:(id)arg1;
  254. method- (id)newestExistingChatWithOriginalGroupID:(id)arg0 onService:(id)arg1;
  255. method- (void)pendingAlternateID:(id)arg0 forHandle:(id)arg1;
  256. method- (id)pendingChatBotHandleToAlternateID;
  257. method- (id)pendingDisplayNameOverrides;
  258. method- (id)pendingHandleIDsForReload;
  259. method- (id)pendingParticipantIDSetsForRemerge;
  260. method- (void)permanentlyDeleteRecoverableMessagesInChatsWithGUIDs:(id)arg0 completionHandler:(id /* block */)arg1;
  261. method- (unsigned long long)persistedChatCount;
  262. method- (id)personCentricGroupedChatsArrayWithMaximumNumberOfChats:(long long)arg0 skipsLastMessageLoading:(BOOL)arg1 usingChats:(id)arg2 useCachedChatGroups:(BOOL)arg3 includingPinnedChatIdentifiers:(id)arg4 repairInconsistentMergedChats:(BOOL)arg5;
  263. method- (id)personCentricGroupedChatsCache;
  264. method- (void)processMessageUsingCKRecord:(id)arg0;
  265. method- (void)processMessageUsingCKRecord:(id)arg0 updatedLastMessageCount:(int)arg1;
  266. method- (void)recoverMessagesWithChatGUIDs:(id)arg0;
  267. method- (id)recoverableMessagesMetadata;
  268. method- (id)recoverableMessagesMetadataPendingCloudKitDeleteWithLimit:(unsigned long long)arg0;
  269. method- (id)recoverableMessagesMetadataPendingCloudKitSaveWithLimit:(unsigned long long)arg0;
  270. method- (void)refreshUIWhileSyncing;
  271. method- (void)removeChat:(id)arg0;
  272. method- (BOOL)removeIMDHandleFromRegistry:(id)arg0;
  273. method- (void)removeItem:(id)arg0 fromChat:(id)arg1;
  274. method- (void)removeMessage:(id)arg0 fromChat:(id)arg1;
  275. method- (BOOL)repairDuplicateChatsIfNeeded;
  276. method- (void)repairInconsistentMergedChatsIfNecessary:(id)arg0;
  277. method- (void)resolveChatConflictUsingSyncData:(id)arg0 localGUID:(id)arg1;
  278. method- (void)setAcceptedContactsChangeNotifier:(id)arg0;
  279. method- (void)setCachedAliasToCNIDMap:(id)arg0;
  280. method- (void)setChatStore:(id)arg0;
  281. method- (void)setCkUtilities:(id)arg0;
  282. method- (void)setHasDumpedLogsForNoExisitingGroup:(BOOL)arg0;
  283. method- (void)setHistoryToken:(id)arg0;
  284. method- (void)setIdToHandlesMap:(id)arg0;
  285. method- (void)setPendingChatBotHandleToAlternateID:(id)arg0;
  286. method- (void)setPendingDisplayNameOverrides:(id)arg0;
  287. method- (void)setPendingHandleIDsForReload:(id)arg0;
  288. method- (void)setPendingParticipantIDSetsForRemerge:(id)arg0;
  289. method- (void)setPersonCentricGroupedChatsCache:(id)arg0;
  290. method- (void)setUpInitialConversationManager;
  291. method- (void)simulateMessageReceive:(id)arg0 serviceName:(id)arg1 groupID:(id)arg2 handles:(id)arg3 sender:(id)arg4 date:(id)arg5 associatedMessageType:(long long)arg6 associatedMessageGuid:(id)arg7;
  292. method- (id)sortPersonCentricChatGroups:(id)arg0;
  293. method- (id)sortedChatInfoWithLimit:(long long)arg0;
  294. method- (id)sortedChats;
  295. method- (id)stringForChatStyle:(unsigned char)arg0;
  296. method- (void)systemDidLeaveFirstDataProtectionLock;
  297. method- (void)systemDidUnlock;
  298. method- (id)truncatedSortedChatsGroupedByPersonCentricID:(id)arg0 count:(long long)arg1 pinnedChatIdentifiers:(id)arg2;
  299. method- (void)updateCachedChatsSyncStatusTo:(long long)arg0 forGUIDs:(id)arg1;
  300. method- (void)updateChatUsingSyncData:(id)arg0;
  301. method- (void)updateChatWithGUID:(id)arg0 serverChangeToken:(id)arg1 recordID:(id)arg2;
  302. method- (void)updateChatsUsingMessageGUIDsAndSummaries:(id)arg0;
  303. method- (void)updateChatsUsingMessageGUIDsWithPriority:(id)arg0;
  304. method- (void)updateFaceTimeGroupName:(id)arg0;
  305. method- (void)updateFaceTimeGroupPhoto:(id)arg0;
  306. method- (void)updateLastMessageForChat:(id)arg0 hintMessage:(id)arg1;
  307. method- (void)updateLastMessageForChat:(id)arg0 hintMessage:(id)arg1 historyQuery:(BOOL)arg2;
  308. method- (void)updateMeCardHasUpdatedForAllChats;
  309. method- (void)updateNotificationUnreadCountForChat:(id)arg0;
  310. method- (void)updatePendingReviewForChatsWithGUIDs:(id)arg0 pendingReview:(BOOL)arg1;
  311. method- (BOOL)updateProperties:(id)arg0 chat:(id)arg1 style:(unsigned char)arg2;
  312. method- (void)updateRecoverableMessageSyncState:(long long)arg0 forMessageRowID:(long long)arg1 onPartIndex:(long long)arg2;
  313. method- (void)updateStateForChat:(id)arg0 forcePost:(BOOL)arg1;
  314. method- (void)updateStateForChat:(id)arg0 forcePost:(BOOL)arg1 shouldRebuildFailedMessageDate:(BOOL)arg2;
  315. method- (void)updateStateForChat:(id)arg0 forcePost:(BOOL)arg1 shouldRebuildFailedMessageDate:(BOOL)arg2 setUnreadCountToZero:(BOOL)arg3;
  316. method- (void)updateStateForChat:(id)arg0 forcePost:(BOOL)arg1 shouldRebuildFailedMessageDate:(BOOL)arg2 shouldCalculateUnreadCount:(BOOL)arg3;
  317. method- (void)updateStateForChat:(id)arg0 fromMessage:(id)arg1 toMessage:(id)arg2 forcePost:(BOOL)arg3 hintMessage:(id)arg4 shouldRebuildFailedMessageDate:(BOOL)arg5 shouldCalculateUnreadCount:(BOOL)arg6 setUnreadCountToZero:(BOOL)arg7;
  318. method- (void)updateStateForChat:(id)arg0 hintMessage:(id)arg1;
  319. method- (void)updateStateForChat:(id)arg0 hintMessage:(id)arg1 shouldRebuildFailedMessageDate:(BOOL)arg2;
  320. method- (void)updateStateForChat:(id)arg0 hintMessage:(id)arg1 shouldRebuildFailedMessageDate:(BOOL)arg2 setUnreadCountToZero:(BOOL)arg3;
  321. method- (void)updateStateForChat:(id)arg0 hintMessage:(id)arg1 shouldRebuildFailedMessageDate:(BOOL)arg2 shouldCalculateUnreadCount:(BOOL)arg3;
  322. method- (BOOL)updateSyncedSyndicationRanges:(id)arg0 forGUID:(id)arg1;
  323. method- (BOOL)updateUnreadCountForChat:(id)arg0;
  324. method- (BOOL)userHasRepliedInKnownChatContainingHandle:(id)arg0;
  325. method- (void)waitForLoadedChatsWithCompletionHandler:(id /* block */)arg0;
  326. property@property(retain, nonatomic) IMAcceptedContactsChangeNotifier *acceptedContactsChangeNotifier;
  327. property@property(readonly, nonatomic) NSArray *allChats;
  328. property@property(readonly, nonatomic) IMDBackgroundMessageProcessingController *bgstMessageProcessingController;
  329. property@property(retain, nonatomic) NSMutableDictionary *cachedAliasToCNIDMap;
  330. property@property(readonly, nonatomic) unsigned long long cachedChatCount;
  331. property@property(readonly, nonatomic) NSArray *cachedChats;
  332. property@property(retain, nonatomic) IMDChatStore *chatStore;
  333. property@property(readonly, nonatomic) NSArray *chats;
  334. property@property(retain, nonatomic) IMDCKUtilities *ckUtilities;
  335. property@property(readonly, nonatomic) TUConversationManager *conversationManager;
  336. property@property(readonly, copy) NSString *debugDescription;
  337. property@property(readonly, copy) NSString *description;
  338. property@property(nonatomic) BOOL hasDumpedLogsForNoExisitingGroup;
  339. property@property(readonly) unsigned long long hash;
  340. property@property(readonly, nonatomic) NSData *historyToken;
  341. property@property(retain, nonatomic) NSMutableDictionary *idToHandlesMap;
  342. property@property(readonly, nonatomic) IMDMessageHistorySyncController *messageHistorySyncController;
  343. property@property(retain, nonatomic) NSMutableDictionary *pendingChatBotHandleToAlternateID;
  344. property@property(retain, nonatomic) NSMutableDictionary *pendingDisplayNameOverrides;
  345. property@property(retain, nonatomic) NSMutableSet *pendingHandleIDsForReload;
  346. property@property(retain, nonatomic) NSMutableSet *pendingParticipantIDSetsForRemerge;
  347. property@property(readonly, nonatomic) unsigned long long persistedChatCount;
  348. property@property(retain, nonatomic) NSMutableDictionary *personCentricGroupedChatsCache;
  349. property@property(readonly, nonatomic) NSArray *sortedChats;
  350. property@property(readonly) Class superclass;
@interface IMDChatRegistry : NSObject <TUConversationManagerDelegate, IMUnlockMonitorListener> {
    NSMutableDictionary *_chatsByGroupID;
    NSRecursiveLock *_chatsLock;
    NSRecursiveLock *_handlesLock;
    NSMutableDictionary *_chats;
    BOOL _isLoading;
    BOOL _firstUnlockTriggered;
    BOOL _doneLoadingAfterMerge;
    BOOL _blackholedChatsExistCache;
    BOOL _hasDumpedLogsForNoExisitingGroup;
    unsigned long long _persistedChatCount;
    NSMutableDictionary *_idToHandlesMap;
    NSData *_historyToken;
    IMDCKUtilities *_ckUtilities;
    IMDChatStore *_chatStore;
    IMDBackgroundMessageProcessingController *_bgstMessageProcessingController;
    IMDMessageHistorySyncController *_messageHistorySyncController;
    NSMutableDictionary *_personCentricGroupedChatsCache;
    NSMutableDictionary *_cachedAliasToCNIDMap;
    IMAcceptedContactsChangeNotifier *_acceptedContactsChangeNotifier;
    NSMutableDictionary *_pendingChatBotHandleToAlternateID;
    NSMutableSet *_pendingParticipantIDSetsForRemerge;
    NSMutableDictionary *_pendingDisplayNameOverrides;
    NSMutableSet *_pendingHandleIDsForReload;
    TUConversationManager *_conversationManager;
}

@property (readonly) unsigned long long hash;
@property (readonly) Class superclass;
@property (copy, readonly) NSString *description;
@property (copy, readonly) NSString *debugDescription;
@property (nonatomic, strong) NSMutableDictionary *idToHandlesMap;
@property (nonatomic, readonly) NSData *historyToken;
@property (nonatomic, strong) IMDCKUtilities *ckUtilities;
@property (nonatomic, strong) IMDChatStore *chatStore;
@property (nonatomic) BOOL hasDumpedLogsForNoExisitingGroup;
@property (nonatomic, readonly) IMDBackgroundMessageProcessingController *bgstMessageProcessingController;
@property (nonatomic, readonly) IMDMessageHistorySyncController *messageHistorySyncController;
@property (nonatomic, strong) NSMutableDictionary *personCentricGroupedChatsCache;
@property (nonatomic, strong) NSMutableDictionary *cachedAliasToCNIDMap;
@property (nonatomic, strong) IMAcceptedContactsChangeNotifier *acceptedContactsChangeNotifier;
@property (nonatomic, strong) NSMutableDictionary *pendingChatBotHandleToAlternateID;
@property (nonatomic, strong) NSMutableSet *pendingParticipantIDSetsForRemerge;
@property (nonatomic, strong) NSMutableDictionary *pendingDisplayNameOverrides;
@property (nonatomic, strong) NSMutableSet *pendingHandleIDsForReload;
@property (nonatomic, readonly) TUConversationManager *conversationManager;
@property (nonatomic, readonly) NSArray *chats;
@property (nonatomic, readonly) NSArray *allChats;
@property (nonatomic, readonly) NSArray *cachedChats;
@property (nonatomic, readonly) unsigned long long cachedChatCount;
@property (nonatomic, readonly) unsigned long long persistedChatCount;
@property (nonatomic, readonly) NSArray *sortedChats;
@property (readonly) unsigned long long hash;
@property (readonly) Class superclass;
@property (copy, readonly) NSString *description;
@property (copy, readonly) NSString *debugDescription;

+ (id)sharedInstance;
+ (id)supportedServiceNames;

- (void)addChat:(id)addChat;
- (id)chatStore;
- (id)historyToken;
- (BOOL)isBeingSetup;
- (void)__addChatToGroupIDChatIndex:(id)groupIDChatIndex;
- (unsigned long long)markAsSpamForIDs:(id)iDs style:(unsigned char)style onServices:(id)onServices chatID:(id)chatID queryID:(id)queryID autoReport:(BOOL)autoReport;
- (id)_cnIDForHandle:(id)handle;
- (id)_preferredGroupPhotoGuidAcrossMergedChats:(id)_preferredGroupPhotoGuidAcrossMergedChats;
- (void)_submitAndOpenTapToRadarForSortedIdentifiers:(id)sortedIdentifiers participants:(id)participants sortedChats:(id)sortedChats;
- (id)_findExistingGroupChatForConversation:(id)conversation onSession:(id)onSession;
- (id)aliasToCNIDMap;
- (void)_updatePendingReviewForChatsWithGUIDsInBackground:(id)background pendingReview:(BOOL)pendingReview completionBlock:(id /* block */)completionBlock;
- (void)updateMeCardHasUpdatedForAllChats;
- (id)existingChatsForIDs:(id)iDs displayName:(id)displayName groupID:(id)groupID style:(unsigned char)style;
- (void)clearRecoverableMessageTombStones;
- (id)truncatedSortedChatsGroupedByPersonCentricID:(id)personCentricID count:(long long)count pinnedChatIdentifiers:(id)pinnedChatIdentifiers;
- (void)_chatGUIDsThatNeedUpdates:(id *)_chatGUIDsThatNeedUpdates chatDictionaryArray:(id *)chatDictionaryArray delta:(id)delta mergeResult:(id)mergeResult;
- (id)personCentricGroupedChatsArrayWithMaximumNumberOfChats:(long long)chats skipsLastMessageLoading:(BOOL)skipsLastMessageLoading usingChats:(id)usingChats useCachedChatGroups:(BOOL)useCachedChatGroups includingPinnedChatIdentifiers:(id)includingPinnedChatIdentifiers repairInconsistentMergedChats:(BOOL)repairInconsistentMergedChats;
- (id)chatForHandles:(id)handles account:(id)account chatIdentifier:(id)chatIdentifier style:(unsigned char)style groupID:(id)groupID originalGroupID:(id)originalGroupID displayName:(id)displayName guid:(id)guid lastAddressedHandle:(id)lastAddressedHandle lastAddressedSIMID:(id)lastAddressedSIMID isBlackholed:(BOOL)isBlackholed;
- (void)_makeAllAttachmentsClassC;
- (id)bestCandidateGroupChatWithFromIdentifier:(id)identifier toIdentifier:(id)toIdentifier displayName:(id)displayName participants:(id)participants updatingToLatestiMessageGroupID:(id)latestiMessageGroupID sortedIdentifiers:(id)sortedIdentifiers serviceName:(id)serviceName shouldUpdateExistingGroupID:(BOOL)shouldUpdateExistingGroupID validationOptions:(unsigned long long)validationOptions failedValidations:(unsigned long long *)failedValidations;
- (id)_upgradeChatToGroupChat:(id)groupChat forConversation:(id)forConversation;
- (void)pendingAlternateID:(id)pendingAlternateID forHandle:(id)forHandle;
- (id)acceptedContactsChangeNotifier;
- (id)allExistingChatsWithIdentifier:(id)identifier style:(unsigned char)style;
- (void)_repairInconsistentJoinStatesAcrossMergedChatsIfNecessary:(id)_repairInconsistentJoinStatesAcrossMergedChatsIfNecessary;
- (void)repairInconsistentMergedChatsIfNecessary:(id)repairInconsistentMergedChatsIfNecessary;
- (id)pendingHandleIDsForReload;
- (BOOL)updateProperties:(id)updateProperties chat:(id)chat style:(unsigned char)style;
- (void)addItem:(id)addItem toChat:(id)toChat;
- (void)_triggerRemergeForPersonCentricID:(id)personCentricID;
- (BOOL)_ensureNoExistingGroupForSyncData:(id)syncData;
- (void)_populateLastMessageForChat:(id)chat;
- (id)_siblingChatsForChat:(id)chat usingChatGUIDToChatMap:(id)chatMap iMessageChat:(id *)iMessageChat;
- (void)systemDidLeaveFirstDataProtectionLock;
- (void)updateStateForChat:(id)chat hintMessage:(id)hintMessage;
- (BOOL)_hasInconsistentJoinStateAcrossMergedChats:(id)_hasInconsistentJoinStateAcrossMergedChats;
- (void)_fixUpChatParticipantsIfNeeded:(id)_fixUpChatParticipantsIfNeeded usingChatGUIDToChatMap:(id)chatMap;
- (void)updatePendingReviewForChatsWithGUIDs:(id)gUIDs pendingReview:(BOOL)pendingReview;
- (id)allExistingChatsWithIdentifier:(id)identifier;
- (id)bestCandidateGroupChatWithFromIdentifier:(id)identifier toIdentifier:(id)toIdentifier displayName:(id)displayName participants:(id)participants updatingToLatestiMessageGroupID:(id)latestiMessageGroupID sortedIdentifiers:(id)sortedIdentifiers serviceName:(id)serviceName shouldUpdateExistingGroupID:(BOOL)shouldUpdateExistingGroupID;
- (id)_mergeParticipantIDs:(id)_mergeParticipantIDs style:(unsigned char)style displayName:(id)displayName;
- (void)setUpInitialConversationManager;
- (void)_contactsChanged:(id)_contactsChanged;
- (id)existingChatWithIdentifier:(id)identifier account:(id)account;
- (id)existingChatsForIDs:(id)iDs onService:(id)onService displayName:(id)displayName groupID:(id)groupID style:(unsigned char)style;
- (void)removeChat:(id)removeChat;
- (id)_allHandles;
- (void)fetchExistingChatsWithQueryRequest:(id)queryRequest synchronously:(BOOL)synchronously completionHandler:(id /* block */)completionHandler;
- (void)_updateChat:(id)_updateChat usingSyncData:(id)usingSyncData;
- (id)existingChatsForIDs:(id)iDs onService:(id)onService style:(unsigned char)style;
- (unsigned long long)markAsSpamForIDs:(id)iDs style:(unsigned char)style onServices:(id)onServices chatID:(id)chatID conversationID:(id)conversationID queryID:(id)queryID autoReport:(BOOL)autoReport isJunkReportedToCarrier:(BOOL)carrier reportReason:(unsigned long long)reportReason;
- (void)resolveChatConflictUsingSyncData:(id)syncData localGUID:(id)localGUID;
- (void)updateCachedChatsSyncStatusTo:(long long)updateCachedChatsSyncStatusTo forGUIDs:(id)forGUIDs;
- (id)_lastIncomingMessageInMessageItems:(id)messageItems;
- (id)existingChatWithEngramID:(id)engramID;
- (id)newestExistingChatWithOriginalGroupID:(id)originalGroupID onService:(id)onService;
- (id)_bestServiceSessionForService:(id)service accountID:(id)accountID;
- (id)messagesPendingUpdateT1ToCloudKitWithLimit:(unsigned long long)limit;
- (void)_checkForContactChangesWithChangeType:(id)changeType;
- (unsigned long long)cachedChatCount;
- (id)_exactGroupChatMatchOrNewestMatchingGroupID:(id)groupID originalGroupID:(id)originalGroupID serviceName:(id)serviceName participants:(id)participants toIdentifier:(id)toIdentifier outNewestSiblingChat:(id *)outNewestSiblingChat;
- (id)stringForChatStyle:(unsigned char)chatStyle;
- (id)_chatGUIDToChatMapForChats:(id)chats;
- (void)_updateLastMessageTimeStampForChat:(id)chat;
- (id)_existingiMessageChatForChatIdentifier:(id)chatIdentifier style:(unsigned char)style;
- (id)generateUnusedChatIdentifierForGroupChatWithAccount:(id)account;
- (id)conversationManager;
- (id)cachedOneOnOneChatsWithIdentifiers:(id)identifiers;
- (id)recoverableMessagesMetadataPendingCloudKitDeleteWithLimit:(unsigned long long)limit;
- (BOOL)_contactsBasedMergingEnabled;
- (void)__unassignGroupIDFromAllChats:(id)allChats;
- (void)__flushPendingForceReloadForHandles;
- (void)updateStateForChat:(id)chat forcePost:(BOOL)forcePost;
- (id)allHandlesForID:(id)iD;
- (id)_existingChatForSyncData:(id)syncData;
- (id)messagesToUploadToCloudKitWithLimit:(unsigned long long)limit;
- (void)updateStateForChat:(id)chat hintMessage:(id)hintMessage shouldRebuildFailedMessageDate:(BOOL)shouldRebuildFailedMessageDate setUnreadCountToZero:(BOOL)zero;
- (id)_handlesWithChangedContactsOriginalMap:(id)changedContactsOriginalMap newMap:(id)newMap;
- (void)setPendingHandleIDsForReload:(id)reload;
- (void)_remergeChatsWithPendingParticipantIDSets;
- (void)_markForksAsSyncedForChat:(id)chat;
- (id)existingChatsWithQueryRequest:(id)queryRequest;
- (id)allChatsWithIdentifier:(id)identifier style:(unsigned char)style serviceNames:(id)serviceNames;
- (void)_performPostUnlockHousekeeping;
- (id)_itemFromCKRecord:(id)cKRecord;
- (void)setAcceptedContactsChangeNotifier:(id)acceptedContactsChangeNotifier;
- (BOOL)_mergeDuplicateGroupsIfNeeded;
- (void).cxx_destruct;
- (id)existingSMSChatForID:(id)iD withChatStyle:(unsigned char)withChatStyle;
- (BOOL)_hasSavedContactCardForHandle:(id)handle;
- (void)setHistoryToken:(id)historyToken;
- (id)bestCandidateGroupChatWithFromIdentifier:(id)identifier toIdentifier:(id)toIdentifier displayName:(id)displayName participants:(id)participants updatingToLatestiMessageGroupID:(id)latestiMessageGroupID sortedIdentifiers:(id)sortedIdentifiers serviceName:(id)serviceName validationOptions:(unsigned long long)validationOptions failedValidations:(unsigned long long *)failedValidations;
- (id)_chatInfoForConnection;
- (void)_remergeChatsWithAliasToCNIDMapWithCompletionHandler:(id /* block */)completionHandler;
- (void)updateChatsUsingMessageGUIDsAndSummaries:(id)summaries;
- (id)_extractHandlesFromMap:(id)map usingCNID:(id)usingCNID;
- (id)sortedChats;
- (id)_exactGroupChatMatchOrNewestMatchingIdentifierFromSortedIdentifiers:(id)sortedIdentifiers participants:(id)participants toIdentifier:(id)toIdentifier;
- (void)updateLastMessageForChat:(id)chat hintMessage:(id)hintMessage historyQuery:(BOOL)historyQuery;
- (id)chatsToUploadToCloudKitWithLimit:(unsigned long long)limit;
- (BOOL)removeIMDHandleFromRegistry:(id)registry;
- (void)dealloc;
- (id)messagesPendingUpdateT2ToCloudKitWithLimit:(unsigned long long)limit;
- (void)_handleUPIForChat:(id)chat toMessage:(id)toMessage hintMessage:(id)hintMessage;
- (void)updateLastMessageForChat:(id)chat hintMessage:(id)hintMessage;
- (void)_addItem:(id)_addItem toChat:(id)toChat reason:(long long)reason;
- (void)_setSortIDOnIncomingMessage:(id)incomingMessage forChat:(id)forChat;
- (id)existingMergedChatsWithChat:(id)chat;
- (void)clearPendingDeleteTable;
- (id)ckUtilities;
- (id)_aliasToCNIDMapForAliases:(id)aliases;
- (id)pendingChatBotHandleToAlternateID;
- (void)permanentlyDeleteRecoverableMessagesInChatsWithGUIDs:(id)gUIDs completionHandler:(id /* block */)completionHandler;
- (id)_uncachedNewestChatWithOriginalGroupID:(id)originalGroupID onService:(id)onService;
- (BOOL)hasKnownSenderChatWithChatIdentifier:(id)chatIdentifier;
- (id)_addChatsFromCacheMisses:(id)cacheMisses preferExistingChats:(BOOL)preferExistingChats;
- (void)updateStateForChat:(id)chat forcePost:(BOOL)forcePost shouldRebuildFailedMessageDate:(BOOL)shouldRebuildFailedMessageDate;
- (BOOL)updateSyncedSyndicationRanges:(id)updateSyncedSyndicationRanges forGUID:(id)forGUID;
- (id)_sharedMessageStore;
- (id)personCentricGroupedChatsCache;
- (BOOL)handleMessageUpdate:(id)handleMessageUpdate;
- (id)cachedChats;
- (id)_chatsWithBlackholed:(BOOL)blackholed;
- (void)_fixUpChatParticipantsIfNeeded:(id)_fixUpChatParticipantsIfNeeded;
- (id)_mergedPinningIdentifiersForChats:(id)chats chatGUIDToChatMap:(id)chatMap groupedChatsByPersonCentricIdWithSortedChats:(id)sortedChats;
- (void)_updateHandlesFromDelta:(id)delta;
- (BOOL)_hasInconsistentGroupPhotoGUIDAcrossMergedChats:(id)_hasInconsistentGroupPhotoGUIDAcrossMergedChats;
- (id)existingSMSChatForID:(id)iD;
- (id)cachedAliasToCNIDMap;
- (BOOL)_chat:(id)_chat isDuplicateOfChat:(id)chat;
- (void)setPendingDisplayNameOverrides:(id)pendingDisplayNameOverrides;
- (BOOL)_shouldHandleInternalPhishingAttempts;
- (id)init;
- (id)_blackholedChatInfoForNumberOfChats:(long long)chats;
- (void)handleMessageUpdateConflictType:(id)handleMessageUpdateConflictType serverRecord:(id)serverRecord localRowID:(long long)localRowID;
- (void)checkBlackholedChatsExistAfterUpdatingChatWithAdd:(BOOL)add;
- (BOOL)hasDumpedLogsForNoExisitingGroup;
- (id)_cachedChatsWithGroupID:(id)groupID;
- (void)_reportMessageDictionaryForMessages:(id)messages isAutoReport:(BOOL)isAutoReport withChat:(id)withChat conversationID:(id)conversationID maxMessagesToReport:(unsigned long long)report totalMessageCount:(unsigned long long *)totalMessageCount notifyInternalSecurity:(BOOL)notifyInternalSecurity isJunkReportedToCarrier:(BOOL)carrier reportReason:(unsigned long long)reportReason context:(id)context;
- (void)_forceReloadChats:(BOOL)_forceReloadChats;
- (void)_evictCachedChat:(id)_evictCachedChat;
- (void)setChatStore:(id)chatStore;
- (void)updateFaceTimeGroupName:(id)updateFaceTimeGroupName;
- (void)updateStateForChat:(id)chat forcePost:(BOOL)forcePost shouldRebuildFailedMessageDate:(BOOL)shouldRebuildFailedMessageDate setUnreadCountToZero:(BOOL)zero;
- (BOOL)_existingItemRequiresUpgrade:(id)_existingItemRequiresUpgrade itemFromCKRecord:(id)cKRecord;
- (id)_parentChatIDFromCKRecord:(id)cKRecord;
- (void)processMessageUsingCKRecord:(id)cKRecord;
- (void)setCkUtilities:(id)ckUtilities;
- (void)__removeChatFromGroupIDChatIndex:(id)groupIDChatIndex;
- (id)chatForHandle:(id)handle account:(id)account chatIdentifier:(id)chatIdentifier guid:(id)guid lastAddressedHandle:(id)lastAddressedHandle lastAddressedSIMID:(id)lastAddressedSIMID isBlackholed:(BOOL)isBlackholed;
- (void)removeItem:(id)removeItem fromChat:(id)fromChat;
- (id)_tuConversationForChat:(id)chat;
- (id)_findChatWinnerInDuplicateChatArray:(id)duplicateChatArray fixDisplayName:(BOOL *)fixDisplayName;
- (id)chatForRoom:(id)room account:(id)account chatIdentifier:(id)chatIdentifier guid:(id)guid;
- (id)existingChatForRoom:(id)room account:(id)account;
- (void)fetchExistingUnreadChatsOlderThan:(id)fetchExistingUnreadChatsOlderThan predicate:(id)predicate limit:(unsigned long long)limit completionHandler:(id /* block */)completionHandler;
- (void)markChatAsDeferredForSyncingUsingSyncData:(id)syncData;
- (id)existingChatForIDs:(id)iDs account:(id)account displayName:(id)displayName originalGroupID:(id)originalGroupID style:(unsigned char)style;
- (id)_findLosingChatGUIDsInArrayOfChats:(id)chats withWinner:(id)withWinner;
- (void)setPendingChatBotHandleToAlternateID:(id)alternateID;
- (id)existingChatForID:(id)iD;
- (id)_chatForTUGroupID:(id)tUGroupID participants:(id)participants;
- (void)_fixSiblingChatsAndStoreIfNeeded:(id)storeIfNeeded iMessageChat:(id)iMessageChat chatsToRegenerate:(id)regenerate;
- (id)_generateCurrentAliasToCNIDDictionary;
- (id)_allChatInfo;
- (id)existingiMessageChatForID:(id)iD withChatStyle:(unsigned char)withChatStyle;
- (id)_existingChatsForIDs:(id)iDs serviceName:(id)serviceName displayName:(id)displayName groupID:(id)groupID useOriginalGroupID:(BOOL)useOriginalGroupID style:(unsigned char)style;
- (id)_oneToOneChatForRemoteHandle:(id)remoteHandle;
- (void)setHasDumpedLogsForNoExisitingGroup:(BOOL)noExisitingGroup;
- (id)existingChatWithGUID:(id)gUID;
- (void)refreshUIWhileSyncing;
- (id)_createGroupChatsArray;
- (id)alternateIDForHandle:(id)handle;
- (BOOL)_hasInconsistentIsFilteredAcrossMergedChats:(id)_hasInconsistentIsFilteredAcrossMergedChats;
- (void)_forceReloadChatsWithAnyHandleIDs:(id)anyHandleIDs;
- (id)_initiatorForConversation:(id)conversation chat:(id)chat;
- (BOOL)repairDuplicateChatsIfNeeded;
- (void)removeMessage:(id)removeMessage fromChat:(id)fromChat;
- (void)updateStateForChat:(id)chat hintMessage:(id)hintMessage shouldRebuildFailedMessageDate:(BOOL)shouldRebuildFailedMessageDate;
- (void)_refreshDomainIdentifiersForChat:(id)chat;
- (void)_enumeratePersonMergedChatsWithMaximumNumberOfChats:(long long)chats usingChats:(id)usingChats useCachedChatGroups:(BOOL)useCachedChatGroups includingPinnedChatIdentifiers:(id)includingPinnedChatIdentifiers usingBlock:(id /* block */)usingBlock;
- (void)setCachedAliasToCNIDMap:(id)cNIDMap;
- (id)_chatInfoForChats:(id)chats;
- (BOOL)filteredChatsExistForServices:(id)services;
- (void)_reloadChatsForDatabaseMergeOrDatabaseSwitchWithReset:(BOOL)reset;
- (void)_captureExistingMergedChatsFailureWithOriginalChat:(id)originalChat foundChats:(id)foundChats;
- (void)_chatGUIDsToRemergeForAcceptedContactChange:(id /* block */)acceptedContactChange;
- (void)_chatGUIDsToRemergeForContactChange:(id /* block */)contactChange;
- (id)_chatInfoForNumberOfChats:(long long)chats;
- (void)_remergeChatsForAcceptedContactsInAliasToCNIDMapWithCompletionHandler:(id /* block */)completionHandler;
- (void)_markGroupPhotosAsUnpurgeableIfNecessary;
- (id)_activeTUConversations;
- (id)_cachedChatWithGUID:(id)gUID;
- (id)messageHistorySyncController;
- (void)_serializeChatsForRemerge:(id)remerge guidsThatNeedRemerging:(id *)guidsThatNeedRemerging chatDictionaryArray:(id *)chatDictionaryArray;
- (void)setPendingParticipantIDSetsForRemerge:(id)remerge;
- (id)_newestGroupChatMatchingParticipants:(id)participants displayName:(id)displayName strictDisplayNameMatching:(BOOL)strictDisplayNameMatching serviceName:(id)serviceName toIdentifier:(id)toIdentifier;
- (id)existingChatWithGroupID:(id)groupID onService:(id)onService;
- (id)_chatInfoInRange:(struct _NSRange)range wantsBlackholed:(BOOL)wantsBlackholed;
- (void)updateChatWithGUID:(id)gUID serverChangeToken:(id)serverChangeToken recordID:(id)recordID;
- (void)_repairInconsistentGroupPhotoGuidAcrossMergedChatsIfNecessary:(id)_repairInconsistentGroupPhotoGuidAcrossMergedChatsIfNecessary;
- (void)markDeferredChatsAsNeedingSync;
- (void)updateStateForChat:(id)chat hintMessage:(id)hintMessage shouldRebuildFailedMessageDate:(BOOL)shouldRebuildFailedMessageDate shouldCalculateUnreadCount:(BOOL)shouldCalculateUnreadCount;
- (id)idToHandlesMap;
- (BOOL)updateUnreadCountForChat:(id)chat;
- (id)chats;
- (void)_updateAliasToCNIDMapAndHistoryTokenWithCompletionHandler:(id /* block */)completionHandler;
- (void)_persistMergeIDMergedChatsIfNeeded;
- (id)_messageStore;
- (void)_repairInconsistentIsFilteredAcrossMergedChatsIfNecessary:(id)_repairInconsistentIsFilteredAcrossMergedChatsIfNecessary;
- (id)pendingParticipantIDSetsForRemerge;
- (id)_conversationItemForChat:(id)chat conversation:(id)conversation;
- (id)_groupPhotoUpdateDateForFileTransfer:(id)fileTransfer;
- (void)updateChatUsingSyncData:(id)syncData;
- (id)existingChatsForIDs:(id)iDs onService:(id)onService displayName:(id)displayName originalGroupID:(id)originalGroupID style:(unsigned char)style;
- (id)_spamMessageCreator;
- (void)_updateLastMessageTimeStampForChat:(id)chat broadcaster:(id)broadcaster;
- (unsigned long long)markAsSpamForIDs:(id)iDs style:(unsigned char)style onServices:(id)onServices chatID:(id)chatID queryID:(id)queryID autoReport:(BOOL)autoReport isJunkReportedToCarrier:(BOOL)carrier;
- (id)copyRecordIDsAndGUIDsPendingCloudKitDelete;
- (void)_adoptUpdatedStateForExistingItem:(id)existingItem itemFromCKRecord:(id)cKRecord;
- (id)existingOneOnOneChatsWithIdentifiers:(id)identifiers;
- (void)systemDidUnlock;
- (id)_copyGroupedDuplicateChatsSortedFromWinningToLosingWithLimit:(long long)limit;
- (id)sortedChatInfoWithLimit:(long long)limit;
- (id)allExistingSupportedServiceChatsWithIdentifier:(id)identifier style:(unsigned char)style;
- (void)addMessage:(id)addMessage toChat:(id)toChat;
- (void)_insertChatUsingSyncData:(id)syncData;
- (void)moveMessagesWithGUIDsToRecentlyDeleted:(id)recentlyDeleted deleteDate:(id)deleteDate;
- (void)invalidatePersonCentricGroupedChatsCache;
- (BOOL)filterediMessageChatsExist;
- (void)moveMessagesInChatsWithGUIDsToRecentlyDeleted:(id)recentlyDeleted filterKeys:(id)filterKeys deleteDate:(id)deleteDate;
- (void)addChat:(id)addChat firstLoad:(BOOL)firstLoad store:(BOOL)store;
- (void)_updateCachedCNIDMapForHandles:(id)handles;
- (id)recoverableMessagesMetadata;
- (id)_existingChatsSortedByIdentifiersAndRecencyFromSortedIdentifiers:(id)sortedIdentifiers;
- (id)_createGroupChatForConversation:(id)conversation onSession:(id)onSession;
- (id)existingChatForIDs:(id)iDs account:(id)account style:(unsigned char)style;
- (void)updateNotificationUnreadCountForChat:(id)chat;
- (BOOL)doneLoadingAfterMerge;
- (void)_remergeChats:(id)_remergeChats;
- (id)_participantIDSetFromHandles:(id)handles toIdentifier:(id)toIdentifier;
- (void)_populateContactIDOnHandles;
- (id)_potentialGUIDsForIdentifier:(id)identifier;
- (id)groupChatsBasedOnIdentity:(id)identity;
- (id)groupChatsBasedOnIdentityUsingCacheIfApplicable:(id)cacheIfApplicable;
- (BOOL)userHasRepliedInKnownChatContainingHandle:(id)handle;
- (id)pendingDisplayNameOverrides;
- (id)blackholedChats;
- (void)waitForLoadedChatsWithCompletionHandler:(id /* block */)completionHandler;
- (id)sortPersonCentricChatGroups:(id)sortPersonCentricChatGroups;
- (id)existingChatsWithGroupID:(id)groupID;
- (id)existingChatsWithPinningIdentifier:(id)pinningIdentifier;
- (void)processMessageUsingCKRecord:(id)cKRecord updatedLastMessageCount:(int)updatedLastMessageCount;
- (void)simulateMessageReceive:(id)simulateMessageReceive serviceName:(id)serviceName groupID:(id)groupID handles:(id)handles sender:(id)sender date:(id)date associatedMessageType:(long long)associatedMessageType associatedMessageGuid:(id)associatedMessageGuid;
- (id)existingChatsFilteredUsingPredicate:(id)predicate sortedUsingLastMessageDateAscending:(BOOL)lastMessageDateAscending limit:(unsigned long long)limit;
- (id)_lookupChatUsingParentChatID:(id)parentChatID service:(id)service;
- (void)_addItemToParentChatIfNotLocationItem:(id)parentChatIfNotLocationItem parentChat:(id)parentChat updatedLastMessageCount:(unsigned long long)updatedLastMessageCount reason:(long long)reason;
- (id)cachedGroupChatsContainingHandles:(id)handles;
- (void)recoverMessagesWithChatGUIDs:(id)chatGUIDs;
- (void)_finalizeIncomingChat:(id)_finalizeIncomingChat;
- (BOOL)hasScheduledMessageForHandleID:(id)handleID;
- (void)_updateAcceptedContactsInAliasToCNIDMapWithCompletionHandler:(id /* block */)completionHandler;
- (void)setPersonCentricGroupedChatsCache:(id)personCentricGroupedChatsCache;
- (id)existingChatsFilteredUsingPredicate:(id)predicate;
- (long long)_compareDuplicateChatsWithFirstChat:(id)firstChat secondChat:(id)secondChat;
- (void)updateFaceTimeGroupPhoto:(id)updateFaceTimeGroupPhoto;
- (id)_newestExistingChatWithGroupID:(id)groupID onService:(id)onService;
- (void)_performCheckForContactChangesWithChangeType:(long long)changeType;
- (id)allChats;
- (id)_addChatFromCacheMiss:(id)cacheMiss preferExistingChat:(BOOL)preferExistingChat;
- (void)updateStateForChat:(id)chat forcePost:(BOOL)forcePost shouldRebuildFailedMessageDate:(BOOL)shouldRebuildFailedMessageDate shouldCalculateUnreadCount:(BOOL)shouldCalculateUnreadCount;
- (void)addIMDHandleToRegistry:(id)registry;
- (BOOL)loadChatsWithCompletionBlock:(id /* block */)completionBlock;
- (void)_remergeChatsWithParticipantIDsSets:(id)participantIDsSets displayNameOverrides:(id)displayNameOverrides;
- (id)_forceReloadChat:(id)_forceReloadChat;
- (id)existingChatForIDs:(id)iDs account:(id)account displayName:(id)displayName groupID:(id)groupID style:(unsigned char)style;
- (unsigned long long)persistedChatCount;
- (void)_chatGUIDsThatNeedRemerging:(id *)_chatGUIDsThatNeedRemerging chatDictionaryArray:(id *)chatDictionaryArray oldPersonCentricID:(id)oldPersonCentricID;
- (id)existingChatsFilteredUsingPredicate:(id)predicate sortedUsingLastMessageDateAscending:(BOOL)lastMessageDateAscending olderThan:(id)olderThan limit:(unsigned long long)limit;
- (void)updateRecoverableMessageSyncState:(long long)updateRecoverableMessageSyncState forMessageRowID:(long long)forMessageRowID onPartIndex:(long long)onPartIndex;
- (void)_chatGUIDsThatNeedRemerging:(id *)_chatGUIDsThatNeedRemerging chatDictionaryArray:(id *)chatDictionaryArray aliasMap:(id)aliasMap;
- (id)_copyDuplicateChatsArrayWithLimit:(long long)limit;
- (void)_setInitialLoadForTesting:(BOOL)testing;
- (void)assignNonHistoricaliMessageIdentifierAndBroadcastForChat:(id)chat identifier:(id)identifier;
- (id)existingChatsForGroupedIDs:(id)groupedIDs displayName:(id)displayName style:(unsigned char)style;
- (BOOL)blackholedChatsExist;
- (void)updateStateForChat:(id)chat fromMessage:(id)fromMessage toMessage:(id)toMessage forcePost:(BOOL)forcePost hintMessage:(id)hintMessage shouldRebuildFailedMessageDate:(BOOL)shouldRebuildFailedMessageDate shouldCalculateUnreadCount:(BOOL)shouldCalculateUnreadCount setUnreadCountToZero:(BOOL)zero;
- (void)addMessage:(id)addMessage toChat:(id)toChat reason:(long long)reason;
- (id)_chatForTUConversation:(id)tUConversation;
- (void)setIdToHandlesMap:(id)handlesMap;
- (void)_updateBlackholedChatsFromDelta:(id)delta;
- (id)recoverableMessagesMetadataPendingCloudKitSaveWithLimit:(unsigned long long)limit;
- (void)_reportMessageDictionaryForMessages:(id)messages isAutoReport:(BOOL)isAutoReport withChat:(id)withChat conversationID:(id)conversationID maxMessagesToReport:(unsigned long long)report totalMessageCount:(unsigned long long *)totalMessageCount isJunkReportedToCarrier:(BOOL)carrier reportReason:(unsigned long long)reportReason context:(id)context;
- (void)_startObservingAcceptedContactChanges;
- (void)updateChatsUsingMessageGUIDsWithPriority:(id)priority;
- (void)conversationManager:(id)conversationManager conversation:(id)conversation addedMembersLocally:(id)addedMembersLocally;
- (id)existingiMessageChatForID:(id)iD;
- (id)bgstMessageProcessingController;

@end