summaryrefslogtreecommitdiffstats
path: root/app/notification.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-09 14:41:03 -0500
committerGeorge Goldberg <george@gberg.me>2017-03-09 19:41:03 +0000
commit9c13863f484e9741adf4179cb6b95ee4af8ec343 (patch)
treed21b1021642124dee6f03188c83c75563ddfda8a /app/notification.go
parent6ff46f30509819d518799561f66358dcd1ec4230 (diff)
downloadchat-9c13863f484e9741adf4179cb6b95ee4af8ec343.tar.gz
chat-9c13863f484e9741adf4179cb6b95ee4af8ec343.tar.bz2
chat-9c13863f484e9741adf4179cb6b95ee4af8ec343.zip
Fix GMs showing up on refresh after being hidden (#5702)
Diffstat (limited to 'app/notification.go')
-rw-r--r--app/notification.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/notification.go b/app/notification.go
index 469d114ee..1dd3fedb2 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -286,7 +286,7 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe
message := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_POSTED, "", post.ChannelId, "", nil)
message.Add("post", post.ToJson())
message.Add("channel_type", channel.Type)
- message.Add("channel_display_name", channel.DisplayName)
+ message.Add("channel_display_name", channelName)
message.Add("channel_name", channel.Name)
message.Add("sender_name", senderUsername)
message.Add("team_id", team.Id)