-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat: show timestamps for reactions in DMs #201
Copy link
Copy link
Open
Labels
enhancementNew feature or improvementNew feature or improvementstatus: postponedThis will not be worked on in the near futureThis will not be worked on in the near future
Description
General idea:
- Hook
IGDirectReactingUserListViewController'sobjectForListAdaptermethod - Each object inside is a
IGDirectReactingUserListCellViewModel(a subclass of NSObject) - Use key-value coding to access
subtitlekey (which will be a string if it's your reaction, otherwise will be nil) - Use the
_reactionsivar array to get the NSString user id_userBasedReaction_usedIdivar and the NSDate_userBasedReaction_serverTimestampivar. - Extract the user id from the object in the list adapter, to find an associated user id in the
reactionsarray to get the corresponding date- IGDirectReactingUserModel = [IGDirectReactingUserListCellViewModel valueForKey:@""]
- IGDirectUserKey = [IGDirectReactingUserModel valueForKey:@"userKey"]
- IGDirectInternalUserKey = [IGDirectReactingUserModel valueForKey:@"internalUserKey"]
- Hook the IGDirectInternalUserKey class and get the
instagramIdNSString ivar
- For each
IGDirectReactingUserListCellViewModelin the array, get the corresponding_reactionsivar_userBasedReaction_serverTimestampfor the instagram id (if possible), then prepend the relative date (NSRelativeDateTimeFormatter) to thesubtitle's original text
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or improvementNew feature or improvementstatus: postponedThis will not be worked on in the near futureThis will not be worked on in the near future