summaryrefslogtreecommitdiffstats
path: root/store/sql_channel_store.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-30 12:28:28 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-01 08:31:17 -0400
commitc9a0030551f289241407743fbd21080cd8a358a4 (patch)
tree03019a8ad970ebd66d7f5bd1a84d11fcdb76f1ff /store/sql_channel_store.go
parentc16b9de8dc4924cf2fb243579284e67f55cf3a47 (diff)
downloadchat-c9a0030551f289241407743fbd21080cd8a358a4.tar.gz
chat-c9a0030551f289241407743fbd21080cd8a358a4.tar.bz2
chat-c9a0030551f289241407743fbd21080cd8a358a4.zip
Moved ChannelMember.NotifyLevel into ChannelMember.NotifyProps
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r--store/sql_channel_store.go33
1 files changed, 1 insertions, 32 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go
index f453c3589..3bbe7e716 100644
--- a/store/sql_channel_store.go
+++ b/store/sql_channel_store.go
@@ -78,8 +78,7 @@ func (s SqlChannelStore) UpgradeSchemaIfNeeded() {
l4g.Error(err.Error())
}
- // TODO uncomment me
- // s.RemoveColumnIfExists("ChannelMembers", "NotifyLevel")
+ s.RemoveColumnIfExists("ChannelMembers", "NotifyLevel")
}
}
@@ -721,36 +720,6 @@ func (s SqlChannelStore) IncrementMentionCount(channelId string, userId string)
return storeChannel
}
-// TODO remove me
-func (s SqlChannelStore) UpdateNotifyLevel(channelId, userId, notifyLevel string) StoreChannel {
- storeChannel := make(StoreChannel)
-
- go func() {
- result := StoreResult{}
-
- updateAt := model.GetMillis()
-
- _, err := s.GetMaster().Exec(
- `UPDATE
- ChannelMembers
- SET
- NotifyLevel = :NotifyLevel,
- LastUpdateAt = :LastUpdateAt
- WHERE
- UserId = :UserId
- AND ChannelId = :ChannelId`,
- map[string]interface{}{"ChannelId": channelId, "UserId": userId, "NotifyLevel": notifyLevel, "LastUpdateAt": updateAt})
- if err != nil {
- result.Err = model.NewAppError("SqlChannelStore.UpdateNotifyLevel", "We couldn't update the notify level", "channel_id="+channelId+", user_id="+userId+", "+err.Error())
- }
-
- storeChannel <- result
- close(storeChannel)
- }()
-
- return storeChannel
-}
-
func (s SqlChannelStore) GetForExport(teamId string) StoreChannel {
storeChannel := make(StoreChannel)