diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-10-07 11:39:45 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-10-07 11:39:45 -0400 |
commit | 1421e1ec4aa09c0e7094643d342d095cdd91d506 (patch) | |
tree | 80eac658b063f64c019dd71eaa6ac4bbb062d91e /model | |
parent | dfaef4bd7227391e21890c720f9668acb3a64c28 (diff) | |
download | chat-1421e1ec4aa09c0e7094643d342d095cdd91d506.tar.gz chat-1421e1ec4aa09c0e7094643d342d095cdd91d506.tar.bz2 chat-1421e1ec4aa09c0e7094643d342d095cdd91d506.zip |
Fix user_added websocket event and update websocket channel access cache on add/remove member.
Diffstat (limited to 'model')
-rw-r--r-- | model/message.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/message.go b/model/message.go index ec4817b2a..8598bea0e 100644 --- a/model/message.go +++ b/model/message.go @@ -31,8 +31,8 @@ func (m *Message) Add(key string, value string) { m.Props[key] = value } -func NewMessage(teamId string, channekId string, userId string, action string) *Message { - return &Message{TeamId: teamId, ChannelId: channekId, UserId: userId, Action: action, Props: make(map[string]string)} +func NewMessage(teamId string, channelId string, userId string, action string) *Message { + return &Message{TeamId: teamId, ChannelId: channelId, UserId: userId, Action: action, Props: make(map[string]string)} } func (o *Message) ToJson() string { |