Saving Messages

This commit is contained in:
Sarah Jamie Lewis 2018-11-28 12:34:49 -08:00
parent b5875453fb
commit 7a8e102b2a
1 changed files with 9 additions and 8 deletions

View File

@ -1,13 +1,13 @@
package gothings package gothings
import ( import (
"bounce/go/constants"
"bounce/go/gobjects"
"bounce/go/the"
"cwtch.im/cwtch/model" "cwtch.im/cwtch/model"
"encoding/base32" "encoding/base32"
"strings"
"log" "log"
"bounce/go/constants" "strings"
"bounce/go/the"
"bounce/go/gobjects"
) )
type InterfaceState struct { type InterfaceState struct {
@ -98,6 +98,7 @@ func (this *InterfaceState) AddMessage(m *gobjects.Message) {
c.Badge++ c.Badge++
this.UpdateContact(c.Handle) this.UpdateContact(c.Handle)
} }
the.CwtchApp.SaveProfile(the.Peer)
} }
func (this *InterfaceState) GetMessages(handle string) []*gobjects.Message { func (this *InterfaceState) GetMessages(handle string) []*gobjects.Message {