Webapp: Use utility function getEmbedFromMetadata from redux

Description

Use util func getEmbedFromMetadata present in mm-redux instead of the function in webapp.

The change here is pretty much copy and paste from one codebase to another. No functional changes.

QA Test Steps

No testing required

Mana

None

Assignee

Sudheer Timmaraju

QA Assignee

Jelena Gilliam

Reporter

Sudheer Timmaraju

Epic Link

None

Fix versions

Mattermost Team

Apps

Sprint

None

Labels

None

QA Testing Areas

Account Settings

GitHub Issue

None

Components

None
Configure