This commit is contained in:
Sarah Jamie Lewis 2018-05-16 13:20:46 -07:00
parent bd1ad4fc67
commit be7721d02d
5 changed files with 6 additions and 7 deletions

View File

@ -2,6 +2,7 @@ package model
import ( import (
"crypto/rand" "crypto/rand"
"errors"
"fmt" "fmt"
"git.mascherari.press/cwtch/protocol" "git.mascherari.press/cwtch/protocol"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
@ -10,7 +11,6 @@ import (
"io" "io"
"sync" "sync"
"time" "time"
"errors"
) )
//Group defines and encapsulates Cwtch's conception of group chat. Which are sessions //Group defines and encapsulates Cwtch's conception of group chat. Which are sessions
@ -72,7 +72,6 @@ func (g *Group) Invite() ([]byte, error) {
return invite, err return invite, err
} }
// AddMessage takes a DecryptedGroupMessage and adds it to the Groups Timeline // AddMessage takes a DecryptedGroupMessage and adds it to the Groups Timeline
func (g *Group) AddMessage(message *protocol.DecryptedGroupMessage, verified bool) *Message { func (g *Group) AddMessage(message *protocol.DecryptedGroupMessage, verified bool) *Message {
g.lock.Lock() g.lock.Lock()