RN: Erroneous situations when hitting deep links

Description

With the introduction of deep links, we now increase the probability of hitting channels and permalinks via erronenous cases:

Deep link example:

  • Channel: mattermost-beta://<server-url>/<team-name>/channels/<channelID>

  • Permalink: mattermost-beta://<server-url>/<team-name>/pl/<permalinkID>

Error cases

  • Bogus server URL

  • Malformed channel ID (i.e. non-existent channel)

  • Malformed permalink ID (i.e. non-existent permalink)

  • Private channel not belonged to (partly handled by changes in MM-21068)

  • Permalink to message in private channel

  • Public channel that one doesn't belong to

  • Non-existent team

  • Team not belonged to

  • Links to Group messages and DMs

Current Behaviour

The default error handling in these situations is often to fail 'silently', and leave the user back at the channel where they last were, with no feedback about the failure.

Expected Behaviour

Bring up an error popup, describing the link failure.

Mana

2

Assignee

Amit Uttam

QA Assignee

Joseph Baylon

Reporter

Harrison Healey

Epic Link

Fix versions

Mattermost Team

Mobile

Sprint

None

Labels

None

QA Testing Areas

Mobile - RN

GitHub Issue

None

Components

None

Severity

None
Configure