(RN) Guest Accounts: Usernames of members that no longer share any channels with the guest are hyperlinked

Description

Usernames of members that don't share any channels with a guest user are hyperlinked when viewed on RN, if the guest was previously in a channel with those users. This allows the guest to access the member's details screen which exposes the member's info (profile image, email, etc)

Steps:
1. Log in as an admin on the web app and add a guest user to a team and 2 channels, channel1 and channel2
2. Log in as the guest user on iOS or Android
3. As the admin, remove the guest user from channel1
4. Post an at-mention for a member that is a member of channel1 but is not a member of channel2

Observed: The member's username is hyperlinked and the guest user can click on it and view their info

Expected: Member's username should not be hyperlinked for the guest user

Note: Logging out and back in fixes this, the usernames are no longer hyperlinked after that

QA Test Steps

follow the steps in description

Mana

None

Assignee

Eli Yukelzon

QA Assignee

Ogi Marusic

Reporter

Ogi Marusic

Epic Link

Fix versions

Mattermost Team

Platform

Sprint

None

Labels

None

QA Testing Areas

Other (write in QA test steps)

GitHub Issue

None

Components

None

Severity

None
Configure