From db2966b7cb3111ff1b3cadfbec1221343b0e8629 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 15 Feb 2017 18:54:24 -0500 Subject: Remove MakeDirectChannelVisible and add client handling for showing DMs (#5430) --- app/post.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'app/post.go') diff --git a/app/post.go b/app/post.go index dd8712e85..da4aa506b 100644 --- a/app/post.go +++ b/app/post.go @@ -166,14 +166,6 @@ func handlePostEvents(post *model.Post, teamId string, triggerWebhooks bool) *mo }() } - if channel.Type == model.CHANNEL_DIRECT { - go func() { - if err := MakeDirectChannelVisible(post.ChannelId); err != nil { - l4g.Error(err.Error()) - } - }() - } - return nil } -- cgit v1.2.3-1-g7c22