Change Shared with You settings in Messages on Mac
In the Messages app on your Mac, use Shared with You settings to select the apps where you want to see content that’s been shared with you (available in macOS 12 or later).
To change these settings, choose Messages > Settings, then click Shared with You.
Turn Shared with You on or off:
Allow content that’s shared with you to appear in each app.