All media files ever posted or sent via private messages are stored permanently in the account database, allowing the app to track them and show them to the user.