Private
Public Access
1
0

Started working on new conversation / address validation

This commit is contained in:
James Magahern
2021-07-08 13:46:10 -07:00
parent 7a3303da06
commit d814c2e4f6
4 changed files with 113 additions and 2 deletions

View File

@@ -1898,3 +1898,29 @@ typedef void (^CDUnknownBlockType)(void); // return type and parameters are unkn
- (void)differencesFromArray:(id)arg1 removedIndexes:(id *)arg2 insertedIndexes:(id *)arg3;
@end
extern BOOL IMStringIsEmail (NSString *string);
extern NSString* IMStripFormattingFromAddress (NSString *address);
typedef void(^IMChatCalculateServiceForSendingCompletionBlock) (BOOL allAddressesiMessageCapable,
NSDictionary *availabilityPerRecipient,
BOOL checkedServer,
NSError *error);
extern void IMChatCalculateServiceForSendingNewComposeMaybeForce (NSArray *addresses,
NSString *senderLastAddressedHandle,
NSString *senderLastAddressedSIMID,
BOOL forceMMS,
BOOL hasEmailRecipients,
BOOL lastSentMessageWasNotDelivered,
BOOL conversationWasDowngraded,
BOOL hasConversationHistory,
IMService *previousService,
IMChatCalculateServiceForSendingCompletionBlock completion);
// IDS
extern NSString *IDSCopyIDForPhoneNumber(NSString *phoneNumber);
extern NSString *IDSCopyIDForEmailAddress(NSString *emailAddress);