summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-22 09:31:27 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-22 09:31:27 -0400
commit6cc3bfe7a96e66d27a5b7f08bc1dc15a742b36ab (patch)
tree4254a3b2b102815212ceb9c9e43717eb967d290c /store/store.go
parente0cda76eb816da8fda9c42d67197be71201c242e (diff)
downloadchat-6cc3bfe7a96e66d27a5b7f08bc1dc15a742b36ab.tar.gz
chat-6cc3bfe7a96e66d27a5b7f08bc1dc15a742b36ab.tar.bz2
chat-6cc3bfe7a96e66d27a5b7f08bc1dc15a742b36ab.zip
Refactoring direct channel creation to use transaction to avaoid state where channel is created without both users
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index 27731cee1..1cf686a70 100644
--- a/store/store.go
+++ b/store/store.go
@@ -54,6 +54,7 @@ type TeamStore interface {
type ChannelStore interface {
Save(channel *model.Channel) StoreChannel
+ SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) StoreChannel
Update(channel *model.Channel) StoreChannel
Get(id string) StoreChannel
Delete(channelId string, time int64) StoreChannel