Skip to content

Commit

Permalink
Use slightly different API for ddScan on MacOS 11+
Browse files Browse the repository at this point in the history
  • Loading branch information
tneotia committed Nov 5, 2023
1 parent 19a5230 commit 727dc4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion Messages/MacOS-11+/BlueBubblesHelper/BlueBubblesHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ +(void) sendMessage: (NSDictionary *) data transfers: (NSArray *) transfers attr
messageToSend = [messageToSend initWithSender:(nil) time:(nil) text:(message) messageSubject:(subject) fileTransferGUIDs:(nil) flags:(0x5) error:(nil) guid:(nil) subject:(nil) associatedMessageGUID:(associatedMessageGuid) associatedMessageType:*(reaction) associatedMessageRange:(range) messageSummaryInfo:(summaryInfo)];
}
if (ddScan) {
[[IMDDController sharedInstance] scanMessage:messageToSend completionBlock:^(NSObject* temp, NSObject* ddMessageToSend) {
[[IMDDController sharedInstance] scanMessage:messageToSend outgoing:TRUE waitUntilDone:TRUE completionBlock:^(NSObject* temp, NSObject* ddMessageToSend) {
[chat sendMessage:(ddMessageToSend)];
if (transaction != nil) {
[[NetworkController sharedInstance] sendMessage: @{@"transactionId": transaction, @"identifier": [[chat lastSentMessage] guid]}];
Expand Down

0 comments on commit 727dc4e

Please sign in to comment.