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) {
if (channel && channel.type === Constants.DM_CHANNEL) {
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