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 (
"crypto/rand"
"errors"
"fmt"
"git.mascherari.press/cwtch/protocol"
"github.com/golang/protobuf/proto"
@ -10,7 +11,6 @@ import (
"io"
"sync"
"time"
"errors"
)
//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
}
// AddMessage takes a DecryptedGroupMessage and adds it to the Groups Timeline
func (g *Group) AddMessage(message *protocol.DecryptedGroupMessage, verified bool) *Message {
g.lock.Lock()