Skip to content

Commit

Permalink
Remove extra arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsylerpowers authored Feb 16, 2023
1 parent e6454df commit 9e87b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MacOS-10/BlueBubblesHelper/BlueBubblesHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ +(void) sendMessage: (NSDictionary *) data transfers: (NSArray *) transfers attr
isAudioMessage = [data[@"isAudioMessage"] integerValue] == 1;
}

void (^createMessage)(NSAttributedString*, NSAttributedString*, NSString*, NSString*, NSArray*, BOOL, BOOL) = ^(NSAttributedString *message, NSAttributedString *subject, NSString *effectId, NSString *threadIdentifier, NSArray *transferGUIDs, BOOL isAudioMessage) {
void (^createMessage)(NSAttributedString*, NSAttributedString*, NSString*, NSString*, NSArray*, BOOL) = ^(NSAttributedString *message, NSAttributedString *subject, NSString *effectId, NSString *threadIdentifier, NSArray *transferGUIDs, BOOL isAudioMessage) {
IMMessage *messageToSend = [[IMMessage alloc] init];
messageToSend = [messageToSend initWithSender:(nil) time:(nil) text:(message) messageSubject:(subject) fileTransferGUIDs:(transferGUIDs) flags:(isAudioMessage ? 0x300005 : (subject ? 0x10000d : 0x100005)) error:(nil) guid:(nil) subject:(nil) balloonBundleID:(nil) payloadData:(nil) expressiveSendStyleID:(effectId)];
[chat sendMessage:(messageToSend)];
Expand Down

0 comments on commit 9e87b82

Please sign in to comment.