Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tneotia committed Mar 18, 2023
2 parents 089bca2 + a4de823 commit 7a5418d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions MacOS-11+/BlueBubblesHelper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEPLOYMENT_LOCATION = YES;
DEVELOPMENT_TEAM = S6D73TBQQU;
DSTROOT = /;
Expand All @@ -675,7 +675,7 @@
INSTALL_PATH = "/Library/Application Support/MacEnhance/Plugins";
MACH_O_TYPE = mh_dylib;
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 0.0.13;
MARKETING_VERSION = 0.0.14;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = com.bluebubbles.messaging;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -696,7 +696,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 15;
CURRENT_PROJECT_VERSION = 16;
DEPLOYMENT_LOCATION = YES;
DEVELOPMENT_TEAM = S6D73TBQQU;
DSTROOT = /;
Expand All @@ -711,7 +711,7 @@
INSTALL_PATH = "/Library/Application Support/MacEnhance/Plugins";
MACH_O_TYPE = mh_dylib;
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 0.0.13;
MARKETING_VERSION = 0.0.14;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = com.bluebubbles.messaging;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Binary file not shown.
8 changes: 4 additions & 4 deletions MacOS-11+/BlueBubblesHelper/BlueBubblesHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -953,14 +953,14 @@ - (BOOL)_handleIncomingItem:(id)arg1 {
BOOL hasBeenHandled = ZKOrig(BOOL, arg1);
NSString *guid = (NSString *)ZKHookIvar(self, NSString*, "_guid");
if (guid != nil) {
// check if incoming item is a typing indicator or not, and update the status accordingly
if ([item isIncomingTypingMessage]) {
// check if incoming item is a typing indicator or not, and update the status accordingly. check if the class responds to the selector to avoid crashes
if ([item respondsToSelector:@selector(isIncomingTypingMessage)] && [item isIncomingTypingMessage]) {
[[NetworkController sharedInstance] sendMessage: @{@"event": @"started-typing", @"guid": guid}];
DLog("BLUEBUBBLESHELPER: %{public}@ started typing", guid);
} else if ([item isCancelTypingMessage]) {
} else if ([item respondsToSelector:@selector(isCancelTypingMessage)] && [item isCancelTypingMessage]) {
[[NetworkController sharedInstance] sendMessage: @{@"event": @"stopped-typing", @"guid": guid}];
DLog("BLUEBUBBLESHELPER: %{public}@ stopped typing", guid);
} else if ([[item message] isTypingMessage] == NO) {
} else if ([item respondsToSelector:@selector(isTypingMessage)] && [[item message] isTypingMessage] == NO) {
[[NetworkController sharedInstance] sendMessage: @{@"event": @"stopped-typing", @"guid": guid}];
DLog("BLUEBUBBLESHELPER: %{public}@ stopped typing", guid);
}
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ This is the repo for the bundle containing code to perform various tasks not acc
- Send and receive typing indicators
- Mark chats read on the server Mac
- Mark chats unread on the server Mac (requires MacOS 13+)
- Create chats
- Rename group chats
- Add / remove participants from group chats
- Leave group chat
- Update group chat photo (requires MacOS 11+)
- Send messages
- Send replies (requires MacOS 11+)
- Send message effects
Expand All @@ -19,6 +20,9 @@ This is the repo for the bundle containing code to perform various tasks not acc
- Update pinned chats on the server Mac (requires MacOS 11, higher versions are currently unsupported)
- Edit messages (requires MacOS 13+)
- Unsend messages (requires MacOS 13+)
- Check user focus status (requires MacOS 12+)
- Force notify a message (requires MacOS 12+)
- Retrieve Digital Touch and Handwritten message previews (requires MacOS 11+)

See [here](https://docs.bluebubbles.app/helper-bundle/imcore-documentation) for more details on how these were implemented.

Expand Down

0 comments on commit 7a5418d

Please sign in to comment.