Skip to content

Commit 81926e9

Browse files
committed
feat: disable typing indicator in dms
1 parent ba5eef3 commit 81926e9

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ A feature-rich tweak for Instagram on iOS!\
6565

6666
### Stories and messages
6767
- Keep deleted messages
68-
- Disable screenshot detection
68+
- Manually mark messages as seen
69+
- Disable typing status
6970
- Unlimited replay of direct stories
70-
- Disabling sending read receipts
71-
- Disable story seen receipt
7271
- Disable view-once limitations
72+
- Disable screenshot detection
73+
- Disable story seen receipt
7374

7475
### Navigation
7576
- Modify tab bar icon order
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#import "../../Utils.h"
2+
3+
%hook IGDirectTypingStatusService
4+
- (void)updateOutgoingStatusIsActive:(_Bool)active threadKey:(id)key threadMetadata:(id)metadata typingStatusType:(long long)type {
5+
if ([SCIUtils getBoolPref:@"disable_typing_status"]) return;
6+
7+
return %orig(active, key, metadata, type);
8+
}
9+
%end

src/Settings/TweakSettings.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,19 @@ + (NSArray *)sections {
115115
]
116116
}]
117117
],
118-
[SCISetting navigationCellWithTitle:@"Messages and Stories"
118+
[SCISetting navigationCellWithTitle:@"Stories and messages"
119119
subtitle:@""
120120
icon:[SCISymbol symbolWithName:@"rectangle.portrait.on.rectangle.portrait.angled"]
121121
navSections:@[@{
122122
@"header": @"Messages",
123123
@"rows": @[
124124
[SCISetting switchCellWithTitle:@"Keep deleted messages" subtitle:@"Saves deleted messages in chat conversations" defaultsKey:@"keep_deleted_message"],
125-
[SCISetting switchCellWithTitle:@"Manually mark messages as seen" subtitle:@"Adds a button to DM threads, which will mark messages as seen" defaultsKey:@"remove_lastseen"]
125+
[SCISetting switchCellWithTitle:@"Manually mark messages as seen" subtitle:@"Adds a button to DM threads, which will mark messages as seen" defaultsKey:@"remove_lastseen"],
126+
[SCISetting switchCellWithTitle:@"Disable typing status" subtitle:@"Prevents the typing indicator from being shown to others when you're typing in DMs" defaultsKey:@"disable_typing_status"],
126127
]
127128
},
128129
@{
129-
@"header": @"Visual Messages/Stories",
130+
@"header": @"Visual messages & stories",
130131
@"rows": @[
131132
[SCISetting switchCellWithTitle:@"Unlimited replay of visual messages" subtitle:@"Replays direct visual messages normal/once stories unlimited times (toggle with image check icon)" defaultsKey:@"unlimited_replay"],
132133
[SCISetting switchCellWithTitle:@"Disable view-once limitations" subtitle:@"Makes view-once messages behave like normal visual messages (loopable/pauseable)" defaultsKey:@"disable_view_once_limitations"],

0 commit comments

Comments
 (0)