From 6cc3bfe7a96e66d27a5b7f08bc1dc15a742b36ab Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 22 Oct 2015 09:31:27 -0400 Subject: Refactoring direct channel creation to use transaction to avaoid state where channel is created without both users --- store/store.go | 1 + 1 file changed, 1 insertion(+) (limited to 'store/store.go') 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 -- cgit v1.2.3-1-g7c22