Commit bad2527c authored by Jonathan Fritz's avatar Jonathan Fritz

Removed the null check on channel. Unfortunately, this will cause MM-8564 to regress

parent ba6f26f5
......@@ -124,10 +124,6 @@ export async function emitPostFocusEvent(postId, returnTo = '') {
if (data) {
const channelId = data.posts[data.order[0]].channel_id;
const channel = ChannelStore.getChannelById(channelId);
if (!channel) {
browserHistory.push(`/error?type=${ErrorPageTypes.PERMALINK_NOT_FOUND}&returnTo=${returnTo}`);
return;
}
if (channel && channel.type === Constants.DM_CHANNEL) {
loadNewDMIfNeeded(channel.id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment