Skip to content

feat: show timestamps for reactions in DMs #201

@SoCuul

Description

@SoCuul

General idea:

  • Hook IGDirectReactingUserListViewController's objectForListAdapter method
  • Each object inside is a IGDirectReactingUserListCellViewModel (a subclass of NSObject)
  • Use key-value coding to access subtitle key (which will be a string if it's your reaction, otherwise will be nil)
  • Use the _reactions ivar array to get the NSString user id _userBasedReaction_usedId ivar and the NSDate _userBasedReaction_serverTimestamp ivar.
  • Extract the user id from the object in the list adapter, to find an associated user id in the reactions array to get the corresponding date
    • IGDirectReactingUserModel = [IGDirectReactingUserListCellViewModel valueForKey:@""]
    • IGDirectUserKey = [IGDirectReactingUserModel valueForKey:@"userKey"]
    • IGDirectInternalUserKey = [IGDirectReactingUserModel valueForKey:@"internalUserKey"]
    • Hook the IGDirectInternalUserKey class and get the instagramId NSString ivar
  • For each IGDirectReactingUserListCellViewModel in the array, get the corresponding _reactions ivar _userBasedReaction_serverTimestamp for the instagram id (if possible), then prepend the relative date (NSRelativeDateTimeFormatter) to the subtitle's original text

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvementstatus: plannedThis is planned for a future release

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions